WCAG 2.1.2: No keyboard trap
In European law this criterion is EN 301 549 clause 9.2.1.2 — chapter 9, the part of the harmonised standard that applies to websites under the European Accessibility Act.
How to test by hand
Automated checks find only some failures of this criterion. These steps cover the rest.
You need
- Keyboard only
Steps
- Press Tab repeatedly from the top of the page to the bottom, then Shift+Tab back. Check that focus never gets stuck in one component, such as an embedded player, map, iframe or custom widget.
- Open each modal dialog or popover. Focus may cycle inside it, but check that Esc, a Cancel or Close button, or another standard method lets you leave it by keyboard.
- Tab into rich text editors, code editors and embedded applications that use Tab themselves. If leaving needs a special key combination, check that instructions telling you how are shown.
- Pay particular attention to third-party embeds and content in other formats (video players, PDFs, plug-ins) placed in the page.
- Passes when
- Focus can always be moved away from every component using Tab, arrow keys, Esc or a method the page explains.
- Fails when
- Once focus enters some component, the keyboard cannot move it out and no instructions explain how to leave.
Note: W3C notes that this criterion applies to all content on the page, including content not used to meet other criteria (Conformance Requirement 5: Non-Interference).
Steps are based on W3C’s Understanding WCAG 2.2: 2.1.2 No keyboard trap, which explains the intent, examples and exceptions in full. A manual check by you is a first look, not an audit: it does not make a site conformant and is not a substitute for testing by an experienced auditor with real assistive technology users. How we separate what a machine can and cannot check is explained in our methodology; for a full audit, see the directory of accessibility agencies.
What automation checks
axe-core has no rule for this criterion, so our own browser check a11y-keyboard-trap walks the page with the Tab key in a real browser and flags focus that cannot move past an element.
What automation cannot prove
An automated test finds some failures of WCAG 2.1.2; it cannot confirm the criterion is met. Whether the result actually works for people — in context, with real content — is a judgement call that needs a human auditor. Nothing on this page is a statement of conformance or legal advice. The full map of what our scanner covers and where it stops is on what our scanner checks.
Related guides
- Audyt WCAG i deklaracja dostępności: przewodnik
- EN 301 549: the European accessibility standard explained
- accessiBe Alternatives: What Replaces Each Part of It
- Accessibility Overlays vs. Real WCAG Audits: What Actually Delivers Compliance
- ARIA Labels Explained: aria-label vs aria-labelledby vs aria-describedby
- How to Write Alt Text: A Practical Guide (WCAG 1.1.1)
- WCAG accessibility audit: process, deliverables and how to choose a vendor
- WCAG conformance levels: A, AA and AAA — which one actually applies to you
Does your site pass this check?
Free instant scan. No signup required. WCAG 2.1.2 is one of the criteria it tests.
Scan website