When should you use an ID Selector or a class in CSS? There are many of answers, some more technical than others, but here’s a fast and dirty answer. Use an ID selector when it will be used only once on the page. For example, DIVs for header, body and footer are just begging to [...]