+ 4

Why can't we start name of class or id with a number?

25th May 2017, 4:34 PM
Ashu
Ashu - avatar
3 Antworten
+ 5
there are certain rules to name a variable.
25th May 2017, 4:42 PM
MR Programmer
MR Programmer - avatar
0
because that's some rules to defind the name of id like programming languages.
17th Aug 2017, 2:48 PM
Hassan Hamdy
Hassan Hamdy - avatar
0
It's so because the creators of CSS have predefined certain rules and criteria based upon which CSS run, in relation with HTML. Without violating HTML CODES. I hope it helped.
3rd Oct 2017, 10:48 AM
Sergio Salvatore
Sergio Salvatore - avatar