Skip to content

This is an unpublished draft preview that might include content that is not yet approved. The published website is at w3.org/WAI/.

Keyboard Focus Appearance

Summary

There are various ways of creating a focus indicator, the following techniques provide custom ways of creating and testing each category of focus indicator.

Line or bounding box indicators

Technology:
HTML

A bounding box focus indicator using outline, border or box-shadow.

Change of color

The authored focus indicator uses a change of color within the control.

Icon/shape

The authored focus indicator uses the addition/removal of an icon or shape.

Tooltip/additional content

Display a tooltip to indicate the user interface component with focus.

Size change

A change of size of the focusable element to show focus.

Combination indicators

If an indicator uses a combination of techniques, one of those techniques must meet the test.

Other indicators

Using a custom indicator that does not fit into any other method.

How it solves user need

Coming soon

Methods

Custom focus indicator

Providing a custom focus indicator for interactive elements.

See More

Default Focus Indicator

Focusable item uses the user agent default indicator.

See More

Other focus indicators

Using a custom indicator that does not fit into any other method.

See More

Supplementary indicators

In addition to the focus indicator, there is another change to the focusable element.

See More