WeCodeAcademy
❮ :hover:active ❯

:focus

Selects the focused element.

Syntax

input:focus { ... }

Example

Examplehtml
Open in editor »

← All of CSS Selectors