Skip to main content

CSS - Selectors Are Case-insensitive in hindi

Selectors Are Case-insensitive

Selectors ये case-insensitive होते है | आप एक ही selector को uppercase और lowercase में अलग-अलग देते हो तो उनके styles को combine किया जाता है | जैसे कि निचे picture में दिया हुआ है |


Example

Example पर एक ही selector को lowercase और uppercase में दिया गया है | अगर दोनों case-insensitive selectors पर अलग-अलग Style दी जाती है तो उन्हें combine किया जाता है |
<style>
.myclass{
 color : red;
 background-color : blue;
}
.MYCLASS{
 font-weight : bold;
 font-style : italic;
}
</style>

<div class="myclass">Hello World</div><br />
<div class="MYCLASS">Hello World</div>

Example for Style Overwriting

CSS Style को Overwrite भी किया जाता है | Example पर lowercase selector(.myclass) पर color; red है और uppercase selector(.MYCLASS) पर color; blue दिया गया है | लेकिन HTML Element पर सबसे पासवाली style ही apply हो जाती है |
<style>
.myclass{
 color : red;
}
.MYCLASS{
 color : blue;
}
</style>

<div class="myclass">Hello World</div><br />
<div class="MYCLASS">Hello World</div>


Another Example for Style Overwriting

Example में Element पर paragraph element के साथ उसे class भी दिया गया है | ऐसी situation में HTML Element Selector से ज्यादा महत्व class selector को दिया जाता है |
Example पर paragraph element के सबसे नजदीक class attribute होने के कारण class selector की style को apply किया गया है |
<style>
.myclass{
 color : red;
p{
 color : blue;
}
</style>

<p class="myclass">Hello World</p>

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, #color1 50%, #color2 50%); Create a Responsive Login Form in HTML and CSS in Hindi Now we will come to our Center Div. If you noticed I us

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

RSOS (Rajasthan State Open School) student and RBSE students big update , news in hindi

                  kya nhi honge promote / kya exam honge  rajasthan state open school and RBSE ke students ke lia bahut badi khabar aayi hai . promote hone ke chance hua kam . par ab bhi kosis karne par aap sabhi ko promote kiya ja sakta hai . per esi bich aap apni teyari bhi jaari rakhe taki aapke exam hone par bhi aap achhe nubers s paas ho sake. Thank You