What is a pseudo-class?
A pseudo-class is a selector that selects elements that are in a specific state, e.g. they are the first element of their type, or they are being hovered over by the mouse pointer.
What are CSS pseudo-classes useful for?
Pseudo-classes can be used to style an element based on its state.