On this page
What this issue is
Pressing the Tab key moves focus (the highlighted element that receives typing) from one field to the next. The browser follows the order of elements in the page code, the DOM, unless you override it. If the order skips a field, jumps back up, or lands in the footer halfway through the form, the tab order is broken.
Common causes are CSS that moves fields visually (order, float, absolute positioning, grid areas), positive tabindex values such as tabindex="5", multi-column layouts built in a page builder, and popups or widgets that grab focus. WCAG success criterion 2.4.3 (Focus Order) asks for a logical sequence.
Why it costs you leads or sales
People who use a keyboard, switch device or screen reader cannot complete a form that jumps around. Power users who tab between fields also get frustrated and type into the wrong box. The share of visitors affected is usually small, so the business impact is low, but each affected visitor is a lost lead, and accessibility complaints can carry legal risk in some markets.
- Open landing pagePage loads fine
- Tab to NameFocus lands correctly
- Tab to EmailFocus jumps to Message or the footer
- Submit formVisitor gives up
- Lead in CRMNever created
Tab order breaks mid-form, so the later steps never happen.
How to check if your site has it
Put the mouse away
Open the page with the form and click an empty area near the top so focus starts at the page start.
Press Tab repeatedly
Watch the focus outline. It should move through fields top to bottom, left to right, ending on the submit button. Use Shift+Tab to go backwards.
Check the outline is visible
If you cannot see which field is focused, the CSS may be hiding it with
outline: none. That is a separate accessibility fault but makes testing harder.Inspect tabindex values
In browser DevTools, search the Elements panel for
tabindex=. Any value above 0 is a red flag.Run an accessibility audit
Run Lighthouse (Chrome DevTools) or axe DevTools. They flag positive tabindex values. Then test with a screen reader such as NVDA, VoiceOver or JAWS.
How to fix it
The best fix is to make the source order match the visual order, and to avoid positive tabindex altogether. Use tabindex="0" only for custom controls that need to be focusable, and tabindex="-1" for things that should not be in the tab sequence.
<form action="/contact" method="post">
<label for="name">Name</label>
<input id="name" name="name" type="text">
<label for="email">Email</label>
<input id="email" name="email" type="email">
<label for="message">Message</label>
<textarea id="message" name="message"></textarea>
<button type="submit">Send</button>
</form>Reorder fields in the form plugin
In your form builder (Contact Form 7, WPForms, Gravity Forms and others), drag fields into the order you want. Do not rely on CSS to reorder them.
Check columns and theme CSS
Multi-column layouts can read across rows in the code but down columns on screen. Switch to a single column or reorder to match. Search theme and custom CSS for
order:andtabindex.
Edit the section Liquid
In Online Store > Themes > Edit code, open the form section or snippet and move the field markup into the visual order.
Remove positive tabindex
Search the theme files for
tabindex="and delete values above 0.
Reorder in the Navigator
Drag form elements in the Navigator panel so the order matches the canvas. Avoid absolute positioning on fields.
Check custom attributes
In element settings, look for a custom tabindex attribute and remove it if above 0.
Reorder in the form builder
Drag fields into the right order in the Form or Survey builder. Fields in multi-column rows can change the sequence.
Check custom code
If you added custom CSS or JavaScript to the page, remove anything that moves fields visually or sets tabindex.
Fix the source order
Reorder the HTML so it reads in the same order as the screen. Replace CSS reordering with real markup changes.
Remove positive tabindex
Delete values above 0 and rely on natural DOM order.
Broken
- Message field comes before Email in the code
- Submit button has tabindex="1" and gets focus first
- Focus leaves the form halfway
Fixed
- Code order matches screen order
- No tabindex above 0
- Tab ends on the submit button
How to confirm it's fixed
- Tab moves through every field in reading order
- Shift+Tab reverses the same path
- Focus outline is visible on each field
- Enter or Space activates the submit button
- No focus is trapped in a popup or widget
- Lighthouse or axe shows no tabindex warnings
- Check again on mobile layout, since columns may stack differently
How to prevent it happening again
Add a keyboard-only pass to your release checklist for any page with a form. Re-test after changing a theme, page builder layout, form plugin or adding a popup, because these often change the markup order.
How FunnelGuard handles this
This is outside what FunnelGuard checks. FunnelGuard runs real customer journeys on a schedule and checks steps, tracking hits and test leads, but it does not judge keyboard focus order. For this issue you need an accessibility auditing tool, such as Lighthouse, axe DevTools or WAVE, plus a manual keyboard and screen reader test.
Frequently asked questions
Questions people ask
Why does the Tab key jump around my form fields?
Tab follows the order of elements in the page code, not their position on screen. If CSS moves fields visually, or positive tabindex values are set, the focus order will differ from what people see.
How do I fix tab order on a form?
Reorder the HTML or the form builder fields so the code order matches the visual order, and remove tabindex values above 0. Then press Tab through the form to confirm.
Should I use tabindex to set the order of form fields?
Generally no. Positive tabindex values override natural order and are hard to maintain. Use tabindex="0" for custom controls that must be focusable and tabindex="-1" to remove items from the sequence.
How do I test keyboard navigation on my website?
Use only the keyboard: Tab to move forward, Shift+Tab to go back, Enter or Space to activate. Check that focus is visible, follows reading order and never gets trapped. Add an audit tool like axe or Lighthouse and a screen reader test.
Is a wrong tab order an accessibility violation?
Yes, a illogical focus order can fail WCAG 2.4.3 (Focus Order). Whether it creates legal exposure depends on your country and sector.
Can FunnelGuard detect tab order problems?
No. FunnelGuard monitors journeys, tracking and lead delivery, not keyboard focus order. Use an accessibility audit tool and manual keyboard testing for this.
Why is my keyboard stuck inside a form or popup?
A script or widget may be trapping focus, for example a modal without a close control reachable by keyboard. Make sure Escape closes it and focus returns to the page afterwards.
Related issues
- CNV-004Field labels missing or placeholder-only, field purpose unclearFix guide
- CNV-015Consent/terms checkbox cannot be tickedFix guide
- CNV-019Form fields too small or overlapping on mobileFix guide
- CNV-018Autofill fills wrong fields (bad autocomplete attributes)Fix guide
- CNV-003Required field marked optional (or optional marked required)Fix guide
- CNV-021Form renders twice (duplicate embed)Fix guide