Accessibility Senior cheat sheet: interview answers
Every question of this level with its correct answer and explanation, on one page for a quick review before the interview.
1. How does information get from the DOM to a screen reader?
Correct answer: The browser exposes the accessibility tree via platform APIs
Browsers map roles and states to APIs such as UI Automation on Windows or the AX API on macOS. That's why results differ across browser and reader pairs.
2. Which of these roles gets its name from its content?
Correct answer:
button, whiletextboxneeds a label from elsewhereRoles such as button and link allow name from content. A textbox can't, because its content is the user's value.
3. What does the screen reader announce for this link?
<a href="/pricing" aria-label="Learn more">Pricing plans for teams</a>Correct answer: Only "Learn more";
aria-labelreplaces the inner textaria-labeloverrides name from content, which is a frequent bug when content is updated. It also fails Label in Name if it doesn't contain the visible text.4. Can
aria-describedbypoint to an element with thehiddenattribute?Correct answer: Yes, referenced hidden content still contributes
Name and description computation includes hidden nodes when directly referenced. It's handy for a description that shouldn't appear on screen.
5. A modal sets
aria-hidden="true"on#app, but focus is still inside#app. What happens?Correct answer: Focus lands in hidden content; Chrome may even block the attribute
Move focus first. Chrome warns and ignores
aria-hiddenwhen a descendant holds focus. Preferinert, which removes focus as well.6. What happens with
role="presentation"on a focusable element?Correct answer: The role is ignored, because focusable elements keep semantics
The conflict resolution rules protect users from focusing something with no role. Use it only on non-interactive elements.
7. Why does
role="presentation"on a<ul>also change its<li>children?Correct answer: Required owned elements lose their role along with the parent
List items have no meaning without the list, so they become plain too. Links inside them remain links.
8. Why might an extra wrapper break this widget?
<div role="tablist"> <div class="scroller"> <button role="tab">One</button> </div> </div>Correct answer:
tabmust be owned bytablist, and a generic in between can break itRoles have required context. Assistive tech may not see the tabs correctly. Fix the DOM, or as a last resort use
aria-owns.9. Why shouldn't you rely on
aria-controlsalone?Correct answer: Support is very limited, so most users get nothing from it
It's still a valid relationship, but it's no substitute for clear names, states and DOM order.
10. Why does
aria-labelledbyfail across a Shadow DOM boundary?Correct answer: ID references resolve only within one tree scope
An
idin the light DOM isn't visible from within a shadow root. Workarounds are keeping label and input together or using element reference APIs where supported.11. What does
ElementInternalsoffer custom elements?Correct answer: Default ARIA semantics and form participation with no attributes
attachInternals()lets a form-associated element set its role and value, while page authors can still override with attributes.12. When is
role="grid"right, rather than a plaintable?Correct answer: When cells are interactive and arrow keys move between them
gridturns off browse-mode reading for the region and promises spreadsheet-like navigation. For static data,tableis much easier for users.13. What is the correct ARIA 1.2 structure for an editable combobox?
Correct answer:
role="combobox"on the input, witharia-expandedandaria-controlsThe input holds focus, and
aria-activedescendantmarks the active option. Older patterns put the role on a wrapper, which is why old libraries differ.14. A search combobox updates results as you type. What else do screen reader users need?
Correct answer: A polite status with the result count after typing stops
Focus must stay in the input. Debounce the status so that it isn't read on each keystroke.
15. When should you keep a native
<select>rather than a custom listbox?Correct answer: Almost always, unless you need something it can't do
Native controls work with mobile pickers and every assistive tech for free. A custom select costs focus, typeahead, positioning and testing work.
16. A price slider has
aria-valuenow="3"but the label on screen says "$300 to $500". What's missing?Correct answer:
aria-valuetextwith the human-readable valuearia-valuenowalone reads "3". The value text gives meaning, and arrows, Home and End should work as well.17. What makes a custom date picker hard to get right?
Correct answer: Grid navigation, month changes and labels; native input is safer
You need arrow navigation, Page Up/Down, Esc, focus return and full date labels. Offering a typed text field alongside helps many users.
18. In a rich text editor, Tab inserts an indent. What must you also provide?
Correct answer: A documented key, like Esc then Tab, to leave the editor
Otherwise it's a keyboard trap. CodeMirror and Monaco offer modes for this, and they must be announced to users.
19. What is typeahead in menus and listboxes?
Correct answer: Pressing a letter moves focus to the next matching item
Users expect this from native controls. Reset the buffer after a short pause so multi-letter matches work.
20. A React handler sets state to show a panel, then calls
ref.current.focus(). Why does it fail?Correct answer: The panel isn't rendered yet when focus is called
State updates are batched and rendered after the handler. Use an effect keyed to the state or
flushSyncwhen the element must exist right away.21. What should happen if the element that opened a dialog is gone when the dialog closes?
Correct answer: Move focus to a sensible nearby element you pick
If the dialog's action removed the row, focus the next row or the list heading. Always handle this case explicitly.
22. Why is
inertbetter than a focus trap built with sentinel elements?Correct answer: The background really is unreachable, including virtual cursors
Key-based traps only catch Tab, while screen reader users can still browse behind the modal.
showModal()gives you this behaviour natively.23. How does the
popoverattribute differ from a modal<dialog>?Correct answer: It's non-modal: the page stays interactive and focus isn't trapped
Popovers give top layer, light dismiss and Esc for free, which suits menus and toasts. For blocking tasks, use
showModal().24. What differs between
dialog.show()anddialog.showModal()?Correct answer: Only
showModal()makes the page inert and uses the top layershow()is non-modal, so the rest of the page remains in use. Choose based on whether the task should block the page.25. Why can a live region become a problem in a chat or a dashboard?
Correct answer: Too many updates flood users; throttle and summarize them
The queue can run for minutes. Announce a summary, let users control updates, or use
role="log"for chat.26. Saving twice shows the same "Saved" text, but the second isn't announced. Why?
Correct answer: The text didn't change; clear the region or vary the text
Live regions react to changes. Clearing it first, or adding a time, makes the update real.
27. What risk does SSR add for interactive controls?
Correct answer: They may look ready but do nothing until hydration finishes
On a slow phone, a tap on a dead button is lost. Native links and forms that work without JavaScript avoid this.
28. A Suspense fallback replaces the region that holds focus. What happens?
Correct answer: The focused node unmounts and focus falls back to
bodyKeep previous content during transitions, or restore focus after loading. Announce the loading state if it's long.
29. How do you make a
<canvas>chart accessible?Correct answer: Offer the same data as text or a table, and give it a name
Canvas content has no semantics. Fallback content inside the element and a data table or summary serve users who can't see it.
30. What should an interactive chart offer beyond a good contrast?
Correct answer: A text summary, a data table and non-colour series encoding
State the key insight, provide the data, and use patterns or direct labels so that series differ without colour.
31. Why does a PDF linked from a site need accessibility work too?
Correct answer: Without tags, it may have no structure for screen readers
Scanned or untagged PDFs can be unreadable. Prefer HTML, or export tagged PDFs with reading order and alt text.
32. Which CSS helps layouts work in right-to-left languages?
Correct answer: Logical properties like
margin-inline-startSet
dir="rtl"on the document, and logical properties flip automatically. Icons with direction need mirroring as well.33. Which WCAG 2.2 criterion concerns help mechanisms?
Correct answer: Consistent Help: they stay in the same relative place
If contact or help appears on many pages, keep the same order. It supports people with cognitive disabilities.
34. Which criterion was removed in WCAG 2.2?
Correct answer: 4.1.1 Parsing
Browsers and assistive tech now handle markup errors consistently, so it became obsolete. Other invalid markup can still fail different criteria.
35. Which of these was added in WCAG 2.2?
Correct answer: Focus Not Obscured, Dragging Movements, Target Size (Minimum)
2.2 also added Consistent Help, Redundant Entry and Accessible Authentication. It's backward compatible with 2.1 apart from removing Parsing.
36. What is the status of WCAG 3?
Correct answer: A draft in progress, not a replacement for 2.2 yet
It's a long-term effort with a different structure. Teams should build to 2.2 AA for now.
37. Does WCAG conformance apply to individual components?
Correct answer: No, to full pages and complete processes
An accessible design system doesn't make a product conform. A checkout must work from cart to confirmation, including third-party steps.
38. A site embeds a third-party payment widget that fails WCAG. Whose problem is it?
Correct answer: Yours: the page as a whole doesn't conform
Partial conformance statements exist, but a checkout that users can't finish is still a barrier. Add accessibility to vendor selection.
39. What is the role of WCAG-EM?
Correct answer: A method to scope, sample and evaluate a whole website
You can't test all pages of a big site. It defines a representative sample and how to report results.
40. What is an ACR, usually based on a VPAT?
Correct answer: A report of how a product meets accessibility standards
Enterprise and public-sector buyers often ask for it. Its value depends on real testing by the author.
41. What is EN 301 549?
Correct answer: The European ICT accessibility standard, which includes WCAG AA
It's used in EU public procurement and for meeting the Web Accessibility Directive, and goes beyond the web to software and hardware.
42. Which businesses are exempt from the EAA for services?
Correct answer: Microenterprises: under 10 staff and up to EUR 2M turnover
Non-EU companies that sell to EU consumers are in scope. There's also a disproportionate burden exception, which must be justified.
43. How should you prioritize a backlog of accessibility issues?
Correct answer: By user impact on key journeys: blockers first
A keyboard trap in checkout beats a hundred minor warnings. Severity and task criticality matter more than raw counts.
44. How do you add automated a11y checks to a big legacy app without blocking everyone?
Correct answer: Fail on new violations, and track the baseline down over time
A strict gate on a noisy baseline gets disabled. Ratcheting prevents new debt while old issues are planned.
45. What can a design system do for accessibility that page-level fixes can't?
Correct answer: Fix issues once, in tokens and components, for every product
Accessible contrast tokens, focus styles and tested widgets scale. Product teams still own labels, order and flows.
46. Why test with disabled users if audits are already done?
Correct answer: Audits find rule failures; users reveal real usability problems
A flow can pass every criterion and still be exhausting. Real users show which workarounds they need.
47. How do you check contrast for text on a gradient or a photo?
Correct answer: Test the worst-case area, or add a solid backing
Text must stay readable where the background is closest to it in luminance. An overlay or text panel solves this.
48. What does semi-transparent text mean for contrast checks?
Correct answer: Compute the blended colour on its real background
rgba()over different backgrounds yields different results, so a tool sampling tokens can be wrong. Test rendered pixels.49. What does the AAA criterion Focus Appearance add?
Correct answer: A minimum size and contrast change for the focus indicator
A thin, faint ring technically exists but is hard to see. A 2px solid outline with an offset usually satisfies it.
50. At 400% zoom, a fixed header takes half the screen. What's a good fix?
Correct answer: Let it scroll away or collapse at small heights
Zoomed viewports are short too. A height media query lets you drop
position: sticky.51. A custom control reacts only to
touchstartandkeydown. Why can VoiceOver or TalkBack fail with it?Correct answer: Screen readers mostly fire
clickon activation, so use itOn touch screens, a double-tap sends a click. Handling
clickon a real button covers mouse, touch, keyboard and assistive tech.52. Why can a custom swipe gesture be inaccessible?
Correct answer: Screen readers take over gestures, so give a button alternative
With TalkBack or VoiceOver on, a swipe moves the reader's focus. WCAG also requires single-pointer alternatives to path-based gestures.
53. How do Dragon or Voice Control users click a button?
Correct answer: They say its visible name, so names must match labels
An unnamed icon button leaves them guessing. This is the reason for Label in Name.
54. How does a screen magnifier user experience a toast in a far corner?
Correct answer: They may never see it, so tie feedback to the action's area
Only a small part of the screen is visible. Put error messages near fields, and keep related content close.
55. Why not rely on the
titleattribute for important information?Correct answer: Touch and keyboard users rarely get it, and support varies
It takes a mouse hover to show, and screen readers treat it inconsistently. Use visible text.
56. When is
aria-roledescriptiona bad idea?Correct answer: When it replaces a clear standard role with a made-up term
It overrides the spoken role, so a button stops being "button" and users lose their mental model. It's very rarely needed.
57. A web app adds single-key shortcuts like
jandk. What does WCAG require?Correct answer: A way to turn them off or remap them, or focus-only activation
Speech input users can trigger such keys by accident, since dictated words become key presses. This is level A.
58. Which reduced-motion approach is the safest default?
Correct answer: Add motion inside
prefers-reduced-motion: no-preferenceMotion becomes an enhancement. Don't remove useful feedback: swap a large slide for a fade.
59. How do you respect reduced motion in JavaScript animations?
Correct answer: Check
matchMediaand listen for changes to itCSS queries don't affect scripted animation, including smooth
scrollToand libraries, so you must check it yourself.60. What does
prefers-reduced-transparencyaddress?Correct answer: Users who find translucent and blurred UI hard to read
Glass effects lower readability for some people. Use a solid background when it's set.
61. Why avoid images of text, like a heading drawn in an SVG banner?
Correct answer: Users can't restyle, recolour or reflow that text
Real text scales, translates and adapts to user styles. Logos are exempt.
62. What is audio description, and when is it needed?
Correct answer: Narration of key visuals that the soundtrack doesn't cover
At AA, prerecorded video needs it when important information is only visual. If the speaker says everything, it may not be needed.
63. A virtualized table shows rows 500-520 of 10,000. What helps?
Correct answer:
aria-rowcounton the table andaria-rowindexon the rowsScreen readers then report the real position. Native
Ctrl+Fstill won't find rows that aren't in the DOM, so offer search.64. How can a sortable drag-and-drop list be made keyboard-accessible?
Correct answer: Key controls to pick up and move, with live announcements
Libraries such as dnd-kit offer this. Simple "Move up" and "Move down" buttons are often the most robust solution.
65. Which test assertion checks what a user of assistive tech gets?
Correct answer:
expect(button).toHaveAccessibleName("Save")jest-dom computes names and descriptions as the browser would. Attribute checks test implementation details instead.
66. What do Playwright ARIA snapshots compare?
Correct answer: The page's accessibility tree against a YAML template
toMatchAriaSnapshotcatches lost roles and names that visual tests miss.67. Does a passing
getByRolequery prove a screen reader will behave?Correct answer: No, it models the tree but not real assistive tech
It's a great proxy, but browser and reader bugs exist. Keep manual checks on real combinations for key flows.
68. A page has 800 links, and a screen reader user wants the third section. What makes it fast?
Correct answer: Good headings and landmarks they can jump between
Structure is the navigation layer of non-visual users. Most of the time they don't read linearly.
69. What's the problem with an async validation error added to
aria-describedbyafter blur?Correct answer: The description changed silently; announce it in a live region
Descriptions are read when focus enters the field. If the user has moved on, they miss it, so add a status message or summary.
70. Why can
outline-offsetandoverflow: hiddenconflict?Correct answer: The parent can clip the focus ring so it isn't visible
Cards with rounded corners often clip outlines of their children. Use an inset outline or remove the clipping.
71. Is
alttext generated by AI enough for a large catalog?Correct answer: It helps as a draft, but needs review for context and accuracy
AI describes what's visible, not why the image is there. Purpose and accuracy still need a human or strong rules.
72. What is the main accessibility risk in cookie consent banners?
Correct answer: Focus and reading order put the banner out of reach
Users must be able to reach and dismiss it by keyboard and screen reader, and it shouldn't cover focused elements.
73. How should you decide between hiding and disabling a control a user can't use?
Correct answer: Show it with an explanation if knowing about it helps
An unexplained disabled button is a dead end, especially when it's out of the Tab order.
aria-disabledplus a reason often works best.74. A team writes
<button>styles but ships<a href="#">for actions. What's the real cost?Correct answer: Space doesn't work, and the semantics mislead users
A link announces navigation, and
href="#"scrolls to the top. Lint rules can catch this pattern.75. What is the main value of adding accessibility criteria to the definition of done?
Correct answer: Issues are caught per feature instead of in costly audits
Keyboard checks, labels and contrast become routine, like tests. Audits then confirm rather than discover.