Back to Content

Pseudo-class

files/en-us/glossary/pseudo-class/index.md

latest357 B
Original Source

In CSS, a pseudo-class selector targets elements depending on their state rather than on information from the document tree. For example, the selector {{cssxref(":visited", "a:visited")}} applies styles only to links that the user has already followed.

See also