Hooks for CSS: the class and id Attributes

The class attribute gives a label that many elements can share and the id attribute names one element, and together they are the hooks CSS uses to style exactly the parts you mean.

Updated

Cheat sheet: Hooks for CSS: the class and id Attributes
Category
CSS
Level
Novice
Tags
Attribute (html), class attribute (html), CSS, html, id