What focus and tab order mean in plain words
Some people never use a mouse or a touch screen. They move through a page with the Tab key, press Enter to follow a link and the space bar to tick a box. The element that will react to the next key press has what developers call keyboard focus, and the browser shows it with an outline or a highlight.
On a counseling practice site this matters at the exact moment a prospective client is ready to reach out. If someone using a keyboard cannot see where they are on the contact form, or the Tab key jumps from the name field to the footer and back, they may give up before sending the message. A fixed header or banner that covers the highlighted item causes the same loss, which our guide on sticky headers and cookie banners that hide keyboard focus shows how to test.
What the W3C says
We read two W3C pages before writing this. The Focus Visible criterion says any keyboard-operable page needs a mode where the focus indicator can be seen, and it must stay visible rather than disappear after a moment. The Focus Order criterion says that when the sequence matters to meaning or operation, items receive focus in an order that keeps both.
- The outline can be any clear shape, such as a border, a thick underline or a color change. The W3C does not demand one particular look.
- The order does not have to follow the visual layout exactly, but it must be logical. In a two-column page, finishing the left column and then the right is the usual expectation.
- Two failures the W3C lists by name are removing focus with a script when an item receives it, and styling outlines or borders so the focus mark becomes invisible.
The five-minute Tab test
- 1Open your contact page in Chrome. Click once on empty space, then press Tab. Do not touch the mouse again.
- 2Watch the first stop. On many sites the first item is a hidden skip link that appears at the top, which is a good sign.
- 3Keep pressing Tab and say each stop out loud: logo, menu items, phone link, name field, email field, message field, submit button. The order should match what you would read.
- 4At every stop, check that you can see the outline against the background, including on the colored buttons. Press Shift and Tab to move backward once to confirm it returns the same way.
- 5Open the booking widget or the form and use Tab, Enter and the space bar to fill it out and reach the submit button. Stop before you send anything real.
Common problems and what to tell your designer
| What you see | What to ask for |
|---|---|
| The outline disappears on buttons or links | Show a clear outline on focus, using the browser's focus-visible styling |
| Focus jumps to the footer, then back to the form | Make the page order in the code match the reading order |
| A menu or pop-up opens but Tab keeps going behind it | Keep focus inside the pop-up until it is closed |
| The phone number or Book button cannot be reached | Make it a real link or button, not a styled box |
Booking widgets from another company
Many counseling practices embed a scheduling or intake tool that lives inside a frame. Run the same Tab test through it. You cannot change the vendor's code, but you can report what you found, and you can place a plain phone link and a contact form beside it so there is always a keyboard-friendly way to reach the office.
When you find a problem, write down the page, the step where it happened, the browser you used and what you expected. That note is far more useful to a designer or vendor than the sentence that the form does not work. Our guide on the website accessibility statement and how to report a barrier shows where visitors can send their own reports, and the five-minute screen reader test is the natural next check. A skip link that jumps past the menu is worth adding before you test tab order, since it cuts the number of key presses a visitor needs to reach the form. When the Tab key stays inside a pop-up and the Escape key does nothing, the page is stuck, and a pop-up that traps keyboard focus shows how to test for it.
Frequently asked questions
Why does my theme hide the outline?
Many themes remove the browser's default outline because designers find it plain. The fix is to replace it with a styled outline rather than removing it and offering nothing, which the W3C lists as a failure.
Does the order have to match the visual layout?
Not exactly. The W3C says focus order must be logical and preserve meaning, but it can differ from the visual layout when the sections are independent. A form should still go from the first field to the submit button in order.
Can we test this on a phone?
Not the same way, since phones use touch. Use a laptop with a keyboard for this test, and use the phone for the tap-size and zoom checks covered in our other guides.
Is this the same as a screen reader test?
No. A screen reader reads the page aloud and uses its own commands, while this test checks that a sighted keyboard user can see where they are. Both are worth doing.
Who should own this check?
Whoever manages the website, with the practice manager signing off. Repeat it after any redesign, new form or new booking tool is added.
Sources
- W3C Web Accessibility Initiative — Understanding Success Criterion 2.4.7: Focus Visible
- W3C Web Accessibility Initiative — Understanding Success Criterion 2.4.3: Focus Order