Accessibility Interview Questions

20 Accessibility interview questions with worked answers, complexity notes, and runnable code you can edit in the browser — ordered easy to hard so you build up steadily. Free, no signup. Open any question for the full answer.

Building for everyone, not just the happy path

Accessibility interviews reveal fast whether a candidate has ever considered a user who is not holding a mouse and looking at the screen. The foundation is almost boringly practical: use the right HTML element and most of the work is already done. A <button> is focusable, announces its role, and fires on Enter and Space for free; a <div> pretending to be a button gives you none of that and makes you rebuild it by hand. The accessibility tree — the parallel structure assistive technology actually reads — is built from your markup, so semantic HTML is not a nicety, it is the API.

ARIA is the tool for the gaps native elements cannot fill, and its first rule is not to use it when a native element would do. When you do reach for it, the discipline is keeping its state in sync with reality: an aria-expanded that lies is worse than no attribute at all. Keyboard operability is non-negotiable — every interactive thing must be reachable and usable without a pointer, with a visible focus indicator so sighted keyboard users know where they are.

The hard questions are the custom widgets: a modal that traps focus and restores it on close, a combobox that manages aria-activedescendant, a menu with roving tabindex. These are where the WAI-ARIA authoring patterns earn their keep. The questions here climb from semantics and contrast up through ARIA and accessible forms into those widgets and a realistic testing strategy — automated scans to catch the obvious, manual keyboard and screen-reader passes to catch what scans never will. A green audit is a floor, not a finish line.

Easy

Medium

Hard

Other topics

HTML/CSS · Browser · JavaScript · TypeScript · React · System Design · Web Performance · Testing · Networking/Security · DSA

← Search all 265 questions