What are pseudo-classes in CSS?

Answer

Pseudo-classes define the special state of an element, like :hover, :focus, or :nth-child.

a:hover {
  color: red;
}

Learn more