Pseudoclasses

As the name implies, pseudoclasses work as though there is a class applied to a group of elements, most often the anchor (a) element. These “phantom” classes (to use Eric Meyer’s term) do not appear in the markup, but rather are based on the state of those elements or the document itself.

Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.