Quote:
Originally Posted by JSWolf
But to be honest, I don't actually see the use for defining an ID in CSS instead of a class.
|
I would surmise that "those who create the specs" wanted to keep things ordered and logical when they defined a group style vs. an individual style. In practice things don't always get used as intended, hence we have deprecated styles and tags.
I think it's just a matter of technique. I have used the tag selectors to change the way a particular item class is styled...if the change is minor, or if i need to do it to achieve specific functionality.
For example to not take up space on a page, but to get sigil to put it in the TOC.
h2[title="Copyright Page"] {display:none; margin:0}
<h2 title="Copyright Page"></h2>