Focus order

AccessibilityDefined term

Focus order is the path the Tab key traces through a page's focusable elements. By default it follows DOM order; tabindex, dialogs, and scripted focus management can reorder it — or break it.

WCAG Success Criterion 2.4.3 requires an order that preserves meaning and operability, and 2.4.11 (added in 2.2) requires the focused element to remain at least partially visible. The classic failures are modals that leak focus into the background page and CSS layouts whose visual order diverges from DOM order.

Deep dive: full analysis with this mechanism →

Browse the glossary

Accessibility