Keyboard Navigation and Tab Order Auditor
Audit keyboard access in markup: every tab stop in order with its name, skipped and disabled elements, focus-style problems and custom widget patterns.
Εκτελείται στο πρόγραμμα περιήγησής σας. Τα αρχεία σας δεν φεύγουν ποτέ από τη συσκευή. Δείτε πώς να το ελέγξετε
…
Πώς γίνεται
- 1Paste the HTML
Paste a page, template or component.
- 2Read the tab order
Check that stops follow the visual order and every stop has a name.
- 3Check skipped elements
Confirm that disabled and hidden controls are left out on purpose.
- 4Step through
Use Tab and Shift+Tab buttons to walk the order with the source highlighted.
- 5Try it for real
Open the sandbox preview and press Tab yourself.
- 6Fix and download
Correct the issues and download the report for your ticket.
Σχετικά με αυτό το εργαλείο
Many people never touch a mouse: screen reader users, people with tremors or limited reach, power users, and anyone whose trackpad just broke. For them a page is a sequence of tab stops. If a control cannot be reached, it does not exist; if the order jumps around, the page is confusing; and if the focus ring has been removed, they cannot see where they are. The most common causes are easy to spot in the markup once you know what to look for: a div with an onclick but no tabindex, a positive tabindex that pulls one link to the front, an outline: none rule without a replacement, a hidden button that is still focusable, or a tab widget where every tab is a separate stop. This auditor reads pasted HTML, calculates the order the browser will use for Tab, lists what is left out and why, checks for those patterns and lets you walk through the stops one by one with the source highlighted.
The tab order
Elements are focusable when they are links with href, buttons, inputs other than hidden, selects, textareas, iframes, summary elements, media with controls, contenteditable regions or anything with a tabindex. Elements with tabindex above zero come first in ascending order, then the rest in source order, exactly as browsers do. Disabled controls, controls inside a disabled fieldset (except its legend), hidden or display:none content, inert subtrees and tabindex=-1 are removed and listed separately with the reason. Radio buttons with the same name count as one stop: the checked one, or the first.
The step-through
The step-through tab has Tab and Shift+Tab buttons (and the arrow keys) that move a virtual focus through the list. For each stop you see the element, its role and accessible name, roughly what a screen reader would announce, any notes such as missing name or inline outline:none, a warning when the next stop jumps back up the page, and the source with the element highlighted. The Try it tab renders your markup in a sandbox with scripts disabled so you can press the real Tab key and see the browser's own focus ring.
Checks
The audit reports positive tabindex, click handlers on non-focusable elements (including Vue, Angular and Alpine syntax), widget roles without tabindex, links without href used as buttons, focusable elements inside aria-hidden, focus outlines removed in style blocks without a :focus-visible replacement, a missing skip link on pages with many stops, tab lists, menus and listboxes with more than one stop where the pattern expects a roving tabindex, dialogs without aria-modal, and scripts that intercept Tab without handling Escape, which may be a keyboard trap.
Limits
Only the pasted markup is analysed. External stylesheets, elements made focusable or hidden by JavaScript and the behaviour of your event handlers are not seen, so the audit cannot prove that a custom widget works; it tells you where to test by hand. The Try it preview runs no scripts.
Λυμένο παράδειγμα
The sample product page has 10 tab stops. The Contact link has tabindex=1, so it is reached first, before the logo, which the audit reports as an error and a jump in the step-through. The card div with onclick and the heart span with role=button cannot be reached at all. The three tabs are three separate stops instead of one with arrow keys. The Quick view button is focusable but inside aria-hidden, the disabled button, the tabindex=-1 wishlist link and the hidden coupon are listed as skipped, and two of the three size radios are skipped because the group is one stop. The style block removes every focus outline with no replacement, which fails WCAG 2.4.7.
Με μια ματιά
- Κατηγορία: Προγραμματισμός & δεδομένα
- Εκτελείται στο πρόγραμμα περιήγησης, χωρίς εγγραφή, χωρίς μεταφόρτωση.
- Τα στοιχεία που εισάγετε μένουν στη συσκευή σας.
- Διαθέσιμο στα αγγλικά.
- Τελευταία αναθεώρηση περιεχομένου:
- Επίσημη πηγή: W3C WCAG 2.2 (2.1.1, 2.1.2, 2.4.3, 2.4.7) and WAI-ARIA Authoring Practices
Συχνές ερωτήσεις
Why is positive tabindex bad?
It moves an element ahead of everything else in the page, so the focus order no longer follows the reading order. Use tabindex="0" and change the position in the source instead.
How do I make a div clickable for keyboard users?
Use a button element. If you cannot, add tabindex="0", role="button" and handlers for Enter and Space; a button gives you all three for free.
Is it ever fine to remove the focus outline?
Only if you add a clearly visible replacement, ideally with :focus-visible so mouse users do not see it on click.
Why are only some radio buttons in the order?
A group of radios with the same name is a single stop. Users press Tab to reach the group and arrow keys to change the selection.
What is a keyboard trap?
A place where focus can enter but not leave with standard keys. Modal dialogs must keep focus inside on purpose, but Escape must close them and return focus to the opener.
Is my HTML uploaded?
No. It is parsed in this browser and kept only as a local draft.
