Tab Order
Tab order is the sequence in which interactive elements, such as links, buttons, and form fields, receive keyboard focus as a user presses the Tab key to move through a page or document. A logical tab order helps people who navigate without a mouse move through content in an order that matches how the page is meant to be read and used. When the tab order is illogical or unpredictable, keyboard and assistive technology users may struggle to complete tasks like filling out a form.
Tab order refers to the sequential navigation order in which focusable elements receive focus when a user presses the Tab key. By default, this order generally follows the source (DOM) order of interactive elements such as links, form controls, and buttons. Developers can influence tab order using the HTML global `tabindex` attribute: a value of 0 places an element in the default sequential focus order, a negative value (e.g., -1) makes an element focusable programmatically but removes it from the Tab sequence, and a positive value assigns an explicit order ahead of default elements (a practice generally discouraged because it can produce a confusing sequence). W3C techniques, such as H4, address providing a logical tab order through the arrangement of links and form controls when the default order does not suffice. Tab order is closely related to, but distinct from, reading order, and both should be verified through manual keyboard and assistive technology testing rather than relying solely on source order.
Why it matters
Tab order directly affects whether people who navigate without a mouse can use a page at all. Keyboard users, including many people who rely on screen readers or other assistive technology, move through interactive elements by pressing the Tab key. When that sequence follows the visual and logical arrangement of the page, users can complete tasks like filling out a form or navigating between fields in a predictable way. When the order is illogical or unpredictable, users may skip essential controls, lose track of where they are, or be unable to finish a task.
Because tab order governs the path through links, buttons, and form fields, problems tend to surface most acutely in interactive workflows. As noted in the evidence, tab order dictates how users navigate from one form field to the next, so a broken sequence can turn an otherwise usable form into a barrier. A logical order matters not only for efficiency but for basic operability.
Tab order is closely related to, but distinct from, reading order, and a page can present focus in a sequence that does not match how the content is meant to be read. Verifying tab order generally requires manual keyboard and assistive technology testing rather than relying on automated checks or source order alone; automated tools detect only a portion of issues. This entry describes general accessibility practice and is not legal advice.
Who it's relevant to
Inside Tab Order
Common questions
Answers to the questions practitioners most commonly ask about Tab Order.