Give controls accessible names and descriptions
8 steps · about 1 h 48 min · Beginner
- Start with visible native labels (article, W3C WAI, 14 min)
Native labels give controls a robust name and a larger click target.
- Separate names from instructions (article, W3C WAI, 12 min)
Keep the short label clear while supplying necessary guidance.
- Choose a naming technique deliberately (article, W3C WAI, 20 min)
Understand the priority and tradeoffs of naming mechanisms.
- Name an icon-only control (article, MDN, 8 min)
Use aria-label only when no visible naming element is available.
- Reference visible naming text (article, MDN, 9 min)
Reuse on-screen text as the accessible name instead of duplicating it.
- Understand how browsers compute names (article, W3C, 18 min)
Trace which content and references contribute to the exposed name and description.
- Keep visible and spoken names aligned (article, W3C WAI, 12 min)
Voice-control users need the visible words to match the computed name.
- Inspect the computed accessibility tree (article, Firefox Source Docs, 15 min)
Verify what the browser exposes rather than guessing from markup.