Skip to main content

2.4.7 Focus Visible

Level AA Since WCAG 2.0 How it is checked: Robot

In plain language

When using the keyboard, the element that has focus must be clearly visible, usually with an outline around it.

Who is affected

Examples

Fails

*:focus { outline: none; }   /* removes the focus outline with nothing to replace it */

Passes

:focus-visible { outline: 3px solid #0a4fa3; outline-offset: 2px; }

How to fix

How to test it yourself

What WCAG.win checks

WCAG.win checks part of this criterion automatically. The rest still needs a person.

W3C documentation: Understanding Success Criterion 2.4.7: Focus Visible

Check a web page for free