To avoid putting too much into the style attribute, we can use the class and id attributes to style a subset of the tags.
An id tag must be unique through the document while the class tag can be used on many tags throughout the document.
We can use the class all throughout the entire document.
It is very cool to use classes. The can be used on any tag.
A tag can have more than one class!.
You can even use a hierarchical selection string to style tags.
In general it is nice to keep your HTML as clean and easily understood as possible as in this ⇒ simple navigation bar example.
Go back to the Starting page.