I'm a little confused about HTML classes and IDs, as I'd like to use them BOTH to describe an HTML element. Is this valid and supported by most browsers?
The motivation for me to use both is this:
- I have a CSS style that I would like applied to multiple elements.
- I have some AJAX and Javascript that will manipulate those same elements, so I need a way to identify which element is which using an ID.
- So I'd like to use an id to identify each element for JS manipulation AND at the same time I would like to specify a class so that the same style is applied from the same css.