3.2.1 On Focus
Level A Since WCAG 2.0 How it is checked: Robot
In plain language
Just tabbing to an element must not trigger a major change on its own: going to another page, opening a new window, submitting a form.
Who is affected
- People with motor disabilities using only a keyboard
- Blind people using screen readers
- People with cognitive disabilities
Examples
Fails
Tabbing into the region dropdown makes the page navigate away.
Passes
Changes happen only when the user clicks a button or presses Enter.
How to fix
- Do not attach navigation actions to the focus event.
How to test it yourself
- Tab through every element: does anything happen unexpectedly?
What WCAG.win checks
WCAG.win checks part of this criterion automatically. The rest still needs a person.
- Robot: While pressing Tab through the page, reports if merely moving focus makes the page navigate or open a new window.
W3C documentation: Understanding Success Criterion 3.2.1: On Focus