The problem with absolutely unique elements is that, in a complex enough website (that evolves over time), they often end up not being unique after all.
I agree about IDs for JavaScript though.
I agree about IDs for JavaScript though.
Ids should be used only for scripts, and most of the time should be auto generated anyway.
Leave IDs for uniquely identifying an element on a page because you need to access it from a script.
Treating them like "Extra Strong" class names is a maintenance nightmare.
Would you mind elaborating on the JavaScript point? Is it for convenience with document.getElementById or something?
Using jQuery, I tend to prefer class selectors the same as in my CSS.