+ 1

Why a class or id can't be started with a number?

9th Jan 2017, 2:37 PM
Sathwik
Sathwik - avatar
4 ответов
+ 7
It can (in HTML and JS, that's what i did in my code "ChessBoard") it is impossible in CSS though…… ~_~
9th Jan 2017, 3:05 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
thank you @valentinhacker
9th Jan 2017, 3:06 PM
Sathwik
Sathwik - avatar
+ 1
iI think it has to do with how the computer memory works, if its a number first on the name it (the compiler or browser) confuses that name with the memory adress name which starts with numbers
9th Jan 2017, 4:39 PM
Igor Busquets
Igor Busquets - avatar
+ 1
in computer programming it is a convention you can't store memory any variable that starts with a number
12th Jan 2017, 3:23 PM
Abel Didier DICKA JONG
Abel Didier DICKA JONG - avatar