Foundations · mid
ARIA rules and accessible names
ARIA only changes what assistive technology is told (role, name, state), never behaviour, so follow its rules (native first, do not break semantics, keep it keyboard-operable, never hide focusable things, give every control a name) and know how the accessible name is computed: aria-labelledby, then aria-label, then native labels, then content, then title.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- Rules of ARIA use: (1) use a native element if one exists; (2) don't change native semantics unless you must; (3) every interactive ARIA control must work with the keyboard; (4) never put role=presentation or aria-hidden=true on a focusable element; (5) every interactive element needs an accessible name.
- 'No ARIA is better than bad ARIA': wrong roles and states mislead screen-reader users more than missing ones.
- Name order (simplified): aria-labelledby (text of referenced elements) > aria-label > native source (<label for>, alt, <caption>, <legend>) > element content (for buttons, links, headings, tabs, options) > title / placeholder (weak fallbacks).
- Description (extra info, read after the name): aria-describedby, e.g. hints and error messages.
- States must stay in sync with the UI: aria-expanded, aria-selected, aria-checked, aria-pressed, aria-disabled, aria-current='page', aria-invalid.
- aria-hidden="true" removes content from the accessibility tree (use for decorative icons); hiding visually but keeping for screen readers needs a 'visually-hidden' CSS class.
The red pen
Common traps: mistake → fix
Mistake: "Adding ARIA makes a component accessible"
Fix: ARIA adds no keyboard behaviour; you must implement it.
Mistake: "aria-label on a div gives it a name that's read out"
Fix: many screen readers ignore names on generic elements with no role.
Mistake: "placeholder is a label"
Fix: it disappears while typing and is a weak fallback name.
Easy to hard
Questions interviewers ask, easy to hard
- What is ARIA and when should you not use it?
- How is an element's accessible name calculated?
- aria-label vs aria-labelledby vs aria-describedby?
- Review this icon-button and toggle for ARIA mistakes.
Practise
Practise with these questions
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.