Give controls accessible names and descriptions

8 steps · about 1 h 48 min · Beginner

  1. Start with visible native labels (article, W3C WAI, 14 min)

    Native labels give controls a robust name and a larger click target.

  2. Separate names from instructions (article, W3C WAI, 12 min)

    Keep the short label clear while supplying necessary guidance.

  3. Choose a naming technique deliberately (article, W3C WAI, 20 min)

    Understand the priority and tradeoffs of naming mechanisms.

  4. Name an icon-only control (article, MDN, 8 min)

    Use aria-label only when no visible naming element is available.

  5. Reference visible naming text (article, MDN, 9 min)

    Reuse on-screen text as the accessible name instead of duplicating it.

  6. Understand how browsers compute names (article, W3C, 18 min)

    Trace which content and references contribute to the exposed name and description.

  7. Keep visible and spoken names aligned (article, W3C WAI, 12 min)

    Voice-control users need the visible words to match the computed name.

  8. Inspect the computed accessibility tree (article, Firefox Source Docs, 15 min)

    Verify what the browser exposes rather than guessing from markup.