Skip to content

Glossary: HTML & CSS Basics

Pseudo-class

Also written: pseudo-classes, :hover, :focus, :visited, :first-child

A selector for an element in a particular state, written with a colon, such as `a:hover` for a link under the pointer or `input:focus` for a box ready for typing.

Where the book teaches it

Related terms

SelectorSpecificity