What Is Focus Order Visualizer?
Focus Order Visualizer maps the keyboard tab order of interactive elements on a web page, showing you exactly where focus moves as a user tabs through your site. Itβs an essential accessibility testing tool for ensuring that keyboard-only users and screen reader users can navigate your interface logically.
How to Use This Tool
Click Edit HTML and paste your markup. The tool renders it in a sandboxed frame (scripts in the paste do not run) and puts a numbered badge on every element keyboard focus will reach, in the order Chromium tabs through them: positive tabindex values first, then the rest in page order. It skips tabindex="-1", disabled controls, hidden inputs, anything inside an inert region or a closed <details>, and all but one radio button per group; it includes audio and video players with controls and scroll boxes that the keyboard can focus. Warnings below the preview flag positive tabindex, focusable elements inside aria-hidden="true" and those scroll boxes. Everything runs in your browser.
Why Use Focus Order Visualizer?
Tab order issues are invisible during mouse-based testing but create major barriers for keyboard users. This tool makes the focus sequence visible at a glance, helping you catch accessibility problems that automated scanners often miss. Itβs free, requires no installation, and runs entirely client-side. For a detailed walkthrough, see our step-by-step guide.
Common Use Cases
Auditing an SPA where the route changes have moved focus into unexpected places between transitions. Diagnosing why screen-reader users skip the "Add to cart" button entirely on a product page where the visual order suggests it should come right after the gallery. Validating that a modal dialog traps focus correctly when it opens and returns focus to the triggering element when it closes.
Reviewing a long-form form for tab-order quirks introduced by responsive reordering — CSS flexbox and grid can visually move elements without touching DOM order, so the keyboard path may not match what the eye expects. Confirming a redesigned navigation menu maintains a sensible reading path. Verifying that carousel arrows, dropdown triggers, and toggle buttons all participate in the tab sequence (or are correctly excluded, when that's the right call).
Worked example: the tool's order against real Tab presses
On October 13, 2026 we built a test page with 31 candidates covering the usual traps (positive tabindex, radio groups, a link without href, disabled controls, display: contents, contenteditable) and the newer ones (inert, a closed <details>, content-visibility, keyboard-focusable scrollers, media controls). We ran the old ordering code and the rebuilt one on it, then pressed Tab through the same page in Chromium 141 and recorded every element that took focus. The page and scripts are in our repository (_ops/checks/focus-order/).
| Case | Old tool | Tool now | Chromium 141, Tab |
|---|---|---|---|
| tabindex="1", then tabindex="2" | 1st, 2nd | 1st, 2nd | 1st, 2nd |
| Button inside an inert container | Listed | Skipped | Skipped |
| Button inside a closed <details> | Listed | Skipped | Skipped |
| Button inside content-visibility: hidden | Listed | Skipped | Skipped |
| contenteditable span inside a contenteditable div | Two stops | One stop | One stop |
| <span tabindex="abc"> (not a number) | Listed | Skipped | Skipped |
| Scroll box with no focusable child | Missing | Listed (and warned) | Focused |
| <video controls>, <audio controls> | Missing | One stop each | Same; audio took 2 presses (its play button, then the rest of its controls) |
| Radio groups, open <details>, display: contents, disabled fieldset with a legend input | Right | Right | Same |
| Button inside aria-hidden="true" | Listed | Listed + warning | Focused (and announced as nothing) |
| Whole page | 22 stops: 5 extra, 3 missing | 20 stops, same order | 20 stops |
- Order is Chromium's. The rules follow the HTML Standard's sequential focus navigation plus two Chromium specifics: scroll boxes that overflow and contain nothing focusable become Tab stops from Chrome 130, and a media element counts once even though its built-in controls can take several presses. Other browsers can differ on those two, so check them by pressing Tab in Firefox or Safari as well.
- Positive tabindex reorders the whole page. tabindex="1" and "2" came first in both the tool and Chromium, ahead of everything above them in the source. WCAG 2.4.3 asks for an order that preserves meaning; use tabindex="0" and move the element in the source instead.
- aria-hidden does not remove focus. A button inside aria-hidden="true" still took focus, which leaves screen-reader users on an element that announces nothing. The tool warns about it; use inert to take a region out of both focus and the accessibility tree.
- Pressing Tab is the real test. Research tools that find keyboard barriers, such as Chiou et al. (ESEC/FSE 2021) and BAGEL (CHI 2023), drive a real browser for the same reason: scripts, dialogs and focus traps change the order at run time. This tool shows the order of the markup as pasted; scripts do not run here, and shadow DOM and the inside of iframes are not walked.
Sources
Checked on .
- WHATWG HTML Standard: sequential focus navigation and the tabindex attribute
- WHATWG HTML Standard: the inert attribute
- Chrome for Developers: Keyboard-focusable scrollers (Chrome 130)
- MDN: Element.checkVisibility()
- MDN: aria-hidden (focusable content inside it)
- W3C WCAG 2.2: 2.4.3 Focus Order
- Chiou, Alotaibi & Halfond (2021), Detecting and localizing keyboard accessibility failures in web applications, ESEC/FSE
- Chiou, Alotaibi & Halfond (2023), BAGEL: An Approach to Automatically Detect Navigation-Based Web Accessibility Barriers for Keyboard Users, CHI
Frequently Asked Questions
Built by Derek Giordano · Part of Ultimate Design Tools