:focus (CSS2)

The :focus pseudo-class is applied when a element has received focus, either from the user selecting it with the use of a keyboard or by activating with the mouse (e.

Syntax

:focus { declaration block }

Examples having uses of: ':focus'