Description

Pseudo class targeting the element that currently has the focus.

See also:

  • :active
  • :visited
  • :hover
  • :checked
Live Example
Play with the code in the textarea below.

Introduced in CSS version
2.1
Inherited
N/A
Browser Support
BrowsersIEFirefoxSafariOperaChrome
Versions81170.2
Belongs to:

See the full list CSS properties and browser support: CSS Properties