Is it necessary to have selector’s name in same case in css and html?
is it ok ?
<div id="HEADER"> </div>
#header{...}
or this is necessary?
<div id="HEADER"> </div>
#HEADER{...}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Class names and IDs are case sensitive, so they must have the same casing.
Therefore,
div.MyClassis not the same asdiv.myClass.Element (in HTML) and pseudo-class (everywhere) names are not case sensitive, so
DIV:hoveris the same asdiv:HOVER.For more information, read the spec.