I know that the value of identifiers can’t begin with numbers or hyphens, but can data attributes? And if so is there any reason for not using data--="" (not that I would, just curiosity speaking)
I know that the value of identifiers can’t begin with numbers or hyphens, but
Share
See the definition
The reason is XML compability. And of course javascript compability because
var 1234is not possible.