PUBLIC.INTERNET

Tab / Focus Order Visualizer

Paste a snippet and the tool loads it into a sandboxed frame, then numbers each element in the order the Tab key reaches it. Positive tabindex values go first, then everything else in source order. Hidden, inert, disabled and display:none elements are left out with the reason shown, a radio group counts as one stop, and tabindex="-1" elements are counted as script-focusable only. Scripts and network requests in the paste are blocked, so nothing runs and nothing is uploaded.

The viewport width media queries and vw units see. 320 to 3840.

Tab order

    Not modelled: shadow DOM, popover focus scopes, modal dialogs, image-map validity, the content of pasted iframes (each iframe is one stop here, while a browser tabs into it), and the extra stops browsers add inside date and time inputs and for audio and video controls. Your markup is laid out at the layout width above and 600px tall, in a sandboxed frame with scripts and network requests blocked. Because a real page runs scripts, noscript content is left out.

    How to Check Focus Order

    1. Paste your HTML - Drop a form, toolbar or page section into the Paste your HTML box. The Tab order list updates shortly after you stop typing.
    2. Set Layout width (px) - Enter the viewport width to test, from 320 to 3840 (default 1280). Media queries and vw units resolve at that width, so a control hidden on mobile drops out of the list.
    3. Read the Tab order list - Each numbered row is one stop, in the order Tab visits it. Rows with a positive tabindex or a roleless focusable div carry a warning.
    4. Check Left out of the Tab order - Hidden, inert and disabled elements, and extra radios in a group, appear here with the reason. Tabindex -1 elements are counted below it.
    5. Decide on scrollable regions - With Count scrollable regions as stops checked, a scrolling box with no Tab stop inside it becomes a stop, as in Chromium 130+. Clear it to follow the HTML standard alone.
    6. Copy report - Click Copy report to put the numbered order, warnings and left-out elements on the clipboard for a ticket.

    Why the tool renders your markup

    Whether an element is a Tab stop is decided at render time. A button inside a closed details, one with visibility:hidden, or a field in a disabled fieldset is skipped, and none of that shows up in the attributes. So the tool lays your markup out in a sandboxed frame and reads the computed result. The rules follow the HTML standard's sequential focus navigation, and 66 test cases compare the output with Chromium's real Tab key.

    The rule that surprises people is positive tabindex: any value of 1 or higher is pulled ahead of every natural stop, so Tab jumps there first and then back to the top. That mismatch fails WCAG 2.4.3 Focus Order. Use tabindex="0" only to make a custom control focusable. Not modelled: shadow DOM, popover scopes, modal dialogs, image maps, the inside of pasted iframes, and the extra stops inside date and time inputs and audio and video controls (a date input is one row here but takes four Tab presses in Chromium), so test those in a live page.