Web features explorer

User action pseudo-classes

Widely available since 2018-01-29
Tags: css Groups: CSS > Selectors

The :active, :focus, and :hover CSS pseudo-classes match elements based on how users are interacting with them.

Learning resources on MDN

Browser support