Pseudo-Class Definition
Pseudo-class selectors are CSS selectors with a colon preceding them. You are probably very familiar with a few of them. For example:
a:hover
A pseudo-class is used to define a special state of an element. It can be used to:
- Style an element when a user mouses over it
- Style visited and unvisited links differently
The syntax of pseudo-classes is:
selector:pseudo-class { property:value; }