Is it necessary to have selector's name in same case in css and html? -
Is it the name of the selector in the same case in CSS and HTML?
Is that okay?
& lt; Div id = "HEADER" & gt; & Lt; / Div & gt; #header {...}
Or is it necessary?
& lt; Div id = "HEADER" & gt; & Lt; / Div & gt; #HEADER {...}
Category name and id are case sensitive, so they
Therefore, div.MyClass
no as div.myClass
.
Elements (in HTML) and pseudo-category (everywhere) names are not sensitive, therefore DIV: hover
is as div : Hover
.
For more information, read.
Comments
Post a Comment