Skip to main content

2.1.2 No Keyboard Trap

Level A Since WCAG 2.0 How it is checked: Robot

In plain language

If you can Tab into part of a page (an embed, a media player, a dialog), you must also be able to get back out with the keyboard.

Who is affected

Examples

Fails

You Tab into an embedded map or a text editor and cannot get out without reloading the page.

Passes

Tab/Shift+Tab move through normally; dialogs close with Esc and return focus to where it was.

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.1.2: No Keyboard Trap

Check a web page for free