Web Accessibility

How to keyboard-test a web page

Work through a page using Tab, Shift+Tab, and the keys that activate its controls.

Nov 26, 2026 · Administrator · 2 min read

How to keyboard-test a web page

Pick one task to finish

Choose a real task such as finding an article, opening its navigation menu, or submitting a contact form. Reload the page and put the mouse aside. Start at the top and press Tab to move through the controls.

Track where focus lands

Check that every focused link and control is visibly marked on both light and dark backgrounds. Use Shift+Tab to check the reverse direction. Watch for sticky headers that cover a focused control after the browser scrolls it into view.

Use the keys visitors expect

Press Enter to follow a link. Try Enter and Space on buttons. Open any dialog from the keyboard and use Tab to check that its controls are reachable. Close it and check that focus returns to the control that opened it when that control is still available.

Repeat the task after fixing a problem

Record the page, the keys pressed, and the exact control where the task failed. Start with native links and buttons when replacing elements that only respond to clicks. Rerun the full task so a fix near the top of the page does not hide a later problem.

Follow focus through a dialog

Open a modal from a clearly labelled button. Check that focus starts inside the modal, stays within its interactive controls while it is open, and returns to the opening button after you close it. Try both Tab and Shift+Tab. If the opener was removed, check that focus moves to the next logical place.

Keyboard focus through a modal. Open: Focus moves inside. Navigate: Focus stays inside. Close: Focus returns.

Test a form that fails validation

Submit the form with a required field empty. Check whether the page makes it clear what needs correcting. Try reaching the invalid field with the keyboard, fix it, and submit again. A persistent inline message gives readers time to understand an error after the focus changes.

Test the error and recovery. Submit: Leave a field empty. Locate: Find the field and error. Retry: Correct and submit.

Check the page at a larger zoom

Repeat the task at 200% browser zoom. Watch for controls hidden beneath fixed headers or cookie banners when you tab to them. Verify that you can dismiss any overlay using the keyboard and continue from a sensible place in the task.

Read W3C guidance on visible keyboard focus

Comments

Leave a comment