Tag : ids
Assigning Names
1
There are a few IDs that are used very commonly on web pages, for example, container (or wrapper), header, content, sidebar, footer. These are great examples of CSS IDs, because the names used are self-explanatory. They describe the purpose of the div or element they identify.
2
Both IDs and classes should be given self-explanatory names. The trick is to choose a name that will be self-explanatory over time.
Suppose, for example, that you have a page element that explains the day's specials. You decide to make it red. You could either name it "special" or ...




