Skip to content
Clairos Learn

Accessibility · Lesson 4 of 8 · 10 minutes

Accessibility: Keyboard order

Native links and buttons participate in keyboard navigation in source order. Positive tabindex usually creates surprising jumps.

Mastery 0/3Run itExplain itApply it
Web workshopInert preview · code inspection

Current edit

PreviewNo external resources

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.

Try a variation

Adapt the final example to a different project name while retaining its structure and relationships. A different context still needs a real browser and accessibility check.

Explain it

Which statement correctly explains keyboard order?

Apply it elsewhere

You reuse keyboard order in a different project. What must still be verified?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: Accessibility: Visible focusTry an incident drill

Anonymous 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

  1. 01Accessibility: Landmark labelsDistinct names help people differentiate multiple navigation landmarks.Practice
  2. 02Accessibility: Visible focusA keyboard target needs an obvious focus indicator. Do not remove outlines without an equally visible replacement.Practice
  3. 03Accessibility: Status announcementsrole="status" communicates non-urgent updates without requiring an interrupting alert or focus change.Practice