3 ms·
That's actually where I mix the two uses. CSS class names, I use hyphens, because what CSS calls a class is not the same thing as what Javascript calls a class.
by moron4hire 12y ago
That's actually where I mix the two uses. CSS class names, I use hyphens, because what CSS calls a class is not the same thing as what Javascript calls a class. DOM element IDs, I use camel case, because it's likely to also be the variable name I use on the Javascript side to hold the reference to the DOM element.