Keyboard Focus Order Through a Form

A useful focus sequence follows the readable order of controls and keeps related instructions and actions discoverable.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a small form
  2. Test in both directions

Trace a small form

On a title and quantity form, Tab can reach title, quantity, and submit in that order. Putting submit first may surprise someone who expects it after the fields. Form field roles provide the structure behind those controls.

Test in both directions

Tab forward and Shift+Tab backward. Check that every interactive control needed for the task is reached and that hidden content is skipped. See native control semantics.[1][2]

References

  1. W3C, Web Content Accessibility Guidelines 2.2 ↩
  2. W3C Web Accessibility Initiative, Forms Tutorial ↩