A pseudo-class is an element of CSS coding that adds conditions to a class. When a pseudo-class is added, specific parameters must be met for the instructions to be executed. To add a pseudo-class to a CSS rule, it must immediately be followed by a colon (:), followed by the name of the pseudo-class.
For example, if the :hover pseudo-class is added, the rule is only in effect when the user hovers their mouse cursor over the element.
Class, Programming terms, Web design terms
Related information
- How to start in HTML and web design.