pseudoclassname
Pseudoclassname is a term sometimes used to refer to the textual identifier of a CSS pseudo-class within a selector. In standard CSS terminology, the name itself is called a pseudo-class name, such as hover, focus, active, or nth-child. The pseudoclassname is placed after a colon in a selector (for example, a:hover or li:nth-child(2)) and selects elements based on user interactions, states, or positions rather than their document structure alone.
In practice, pseudoclass names may be simple identifiers or functional forms that accept parameters. Simple examples
Pseudoclass names differ from pseudo-elements, which use a double colon notation and insert generated content before
Browser support for standard pseudoclass names is broad across modern engines, with progressive enhancement typical for
Common examples illustrate practical use: a:hover for interactive links, a:visited for visited links, li:first-child for structural