What is "pseudo-classes"

Pseudo-classes, along with pseudo-Elements, allow you to apply a style to an element not only in relation to the contents of the document tree, but also to external factors such as browsing history (:visited, for example), the state of its content (such as :checked in some form element), or the mouse position (such as :hover allows you to know whether the mouse is on an element or not).