Skip to main content

CSS - basic Syntax in hindi/Urdu


Selector is Element Name or Class Name or id Name

Selector As Element Name : All HTML Elements. For Example, h1, p, b, strong, i
Selector As Class Name : .class_name. For Example, .myclass,
Selector As id Name : #id_name

CSS का Syntax ये selector और उसके declaration के साथ होता है | Selector ये HTML का element name, class name या id name हो सकता है और declaration में CSS Properties और उनकी values होती है |

Syntax1 for CSS

selector{ property : value; }

Simple Example for CSS Syntax1

Example पर single css property के लिए single value दी हुई है | single value ये सभी css properties के लिए होती है |


h1{ color : red; }

Hello World


Syntax2 for CSS

selector{ property : value1 value2 value3; }

Simple Example for CSS Syntax2

Example पर css property के लिए एक से ज्यादा values दी गयी है | multiple values ये CSS के कुछ properties के लिए ही दी जाती है |


table{ border : 1px red solid; }

Grouping Selectors

Example पर multiple selectors के लिए single style दी गयी है |
b, strong, i, p{ color:red; }

Multiple Styles for Single Selector

Example पर multiple styles एक selector को दी गयी है |
h1{
 color:blue;
 font-weight:normal;
 font-size:30px;
}

Universal Selector

'*'(asterisk) को CSS में Universal Selector कहा जाता है | ये selector HTML के सभी elements के लिए होता है |
*{ color:blue; }

Class Selector

HTML Element के class attribute पर दी जानेवाली value ये class selector होता है | निचे class selector के लिए कुछ styles दी गयी है |
.myclass{ 
 color:red;
 font-size:20px; 
}

id Selector

HTML Element के id attribute पर दी जानेवाली value ये class selector होता है | निचे id selector के लिए कुछ styles दी गयी है |
.myid{ 
 color:red;
 font-size:20px; 
}

CSS Combinators ये topic CSS Selector से संबंधित है |

Comments

Popular posts from this blog

Create a Responsive Login Form in HTML and CSS in Hindi

Create a Responsive Login Form in HTML and CSS in Hindi                                                              Login Form in HTML and CSS In this video, we will we see How to Create a Responsive Login Form in HTML and CSS in Hindi step by step. As you can see I try to make a Login form that should be different from others available online on any social media. Believe me, you gonna learn many new technique and tips on how to make a Responsive Login Form in HTML and CSS in Hindi. Let's talk about the background of the Login form in Hindi first. You can see It's a diagonal background and I know must of are thinking how we can create a diagonal webpage. Believe me, I wrote only one line of code to get the diagonal background on my Login Form in Hindi. background-image: linear-gradient(to top right,...

CSS - CSS Fonts in hindi, css font kya h,css font use kese kre,hindi me Technamdev.blogspot.com

CSS Fonts Properties से text/content के font को set किया जाता | इन properties में content को bold, italic, font size और अन्य प्रकार से styling की जाती है | CSS Font Generic Name and Font Family Name Font Generic Name Font Families का group होता है | जैसे कि, Sans-serif(generic) है और उसके अंतर्गत Arial, Arial Black, Agency FB, BankGothic, Calibri और आदि कई Fonts होते है | Font Family Name ये simple fonts name होते है | जैसे कि Arial, Arial Black, Agency FB, BankGothic, Calibri, और आदि कई | Agency FB Antiqua Architect Arial bankFuturistic BankGothic Blackletter Blagovest Calibri Comic Sans MS Courier Cursive Decorative Fantasy Fraktur Frosty Garamond Georgia Helvetica Impact Minion Modern Monospace Open Sans Palatino Roman Sans-serif Serif Script Swiss Times Times New Roman Verdana Most used Web Safe Font...

CSS - CSS Text in hindi, css text kya h, kese likhe Technamdev.blogspot.com

आपने देखा होगा कि कई websites के text का color अलग-अलग होता है | HTML का default text color ये black होता है, लेकिन अगर कुछ लोग चाहते है तो इस text color को बदल भी सकते है | Text Related CSS Properties color direction letter-spacing text-align text-decoration text-indent text-shadow text-transform word-break white-space word-spacing word-wrap Color Property for Text Color निचे div1, div2 और div3 को एक ही color को अलग-अलग प्रकार से दिया गया है | निचे color को अलग-अलग प्रकार से दी जाने वाली values को दिया गया है | Type of Value Description color_name यहाँ पर color का नाम दिया जाता है | For Example, color : red hexadecimal color code यहाँ पर hex code color भी दिया जाता है | For Example, color : #F00 rgb color code यहाँ पर rgb(red,green,blue) color code भी दिया जाता है | color : rgb(255, 0, 0) hsl color code यहाँ पर hsl(hue,saturation,luminance) color code भी दिया जाता है | color : hsl(360, 100%, 50%) .div1{ color : #F00; /* hexadecimal color code...