pseudoclass
Pseudoclass, or pseudo-class, is a concept in CSS describing a keyword added to a selector to target elements in a specific state or position. Pseudo-classes describe conditions that are not represented by a separate element or attribute in the document tree but can be inferred from user interaction or structural relationships.
Common examples include :hover to style an element when the user points with a pointing device; :focus
Pseudo-classes differ from pseudo-elements (which create or style content generated by elements, such as ::before and
Browser support is extensive for standard pseudo-classes; newer ones like :focus-visible and some of the structural