Accessibility: Keyboard order
Native links and buttons participate in keyboard navigation in source order. Positive tabindex usually creates surprising jumps.
Current edit
Understand the pattern
Native links and buttons participate in keyboard navigation in source order. Positive tabindex usually creates surprising jumps.
Native links and buttons participate in keyboard navigation in source order. Positive tabindex usually creates surprising jumps.
Misconceptions to reject
- A visual appearance alone guarantees the intended HTML meaning.
- Replacing semantic elements with generic divs automatically improves accessibility.
The preview is a sanitized subset, not a full browser compatibility test.
Worked example and expected result
<a href="/web/">Course</a><button type="button">Start lesson</button><button type="button">Show hint</button>Native links and buttons participate in keyboard navigation in source order. Positive tabindex usually creates surprising jumps.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Accessibility: Visible focusTry an incident drillAnonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.
Keep learning
- 01Accessibility: Landmark labelsDistinct names help people differentiate multiple navigation landmarks.Practice
- 02Accessibility: Visible focusA keyboard target needs an obvious focus indicator. Do not remove outlines without an equally visible replacement.Practice
- 03Accessibility: Status announcementsrole="status" communicates non-urgent updates without requiring an interrupting alert or focus change.Practice