Skip to content
Changelog
new toolaccessibility

Focus-Order Simulator

v1.0

The Focus-Order Simulator shows the order a keyboard will actually move through a piece of HTML. Paste a fragment of markup and you get a numbered list of its tab order.

That order is not always the order in your file. Elements with a positive tabindex come first, in ascending order, followed by everything else in document order. A single tabindex="1" on a footer button puts it ahead of your skip link and navigation. Where an element has been moved this way, the list notes where it used to sit.

It also flags four problems: a positive tabindex, a focusable element with aria-hidden="true" (reachable by keyboard but silent to a screen reader), a control with no accessible name, and an element at opacity: 0 that is invisible but still in the tab order. Elements with a negative tabindex get their own section, since they can be focused in code but never by Tab. Disabled controls, hidden and inert content, and display: none are left out because they are not in the order.

A preview renders your markup with a badge showing the Tab position on every focusable element and a dashed outline on the ones Tab skips. You can switch between a light and a dark theme. Hover or focus a finding, an order row or a skipped element and the matching element lights up in the preview. The list animates when the order changes.

Three one-click examples load common problems: a call-to-action that jumps the navigation, icon buttons with no names, and an aria-hidden element that keyboard users can still reach.

Nothing you paste is run, and scripts in the markup are removed before preview. Everything stays on your device, your markup is remembered between visits, and Share puts it in a link.

All changes