Frontend

Web Accessibility interview questions

Interviewers assess a candidate's understanding of WCAG principles, practical implementation of accessible design patterns, and ability to use tools for testing and remediation. They look for a commitment to inclusive user experiences and knowledge of assistive technologies.

15 questions (4 easy · 6 medium · 5 hard), each with what a strong answer covers and where people lose the point. Free to read, no account.

On this page (15 questions)

1.What are the four main principles of WCAG, and briefly explain each?

Warm-up

What a strong answer covers

  • List the four principles: Perceivable, Operable, Understandable, Robust (POUR).
  • Explain 'Perceivable' as content being available to senses (e.g., text alternatives for non-text content).
  • Explain 'Operable' as UI components and navigation being usable (e.g., keyboard accessibility).
  • Explain 'Understandable' as information and UI operation being clear and predictable.
  • Explain 'Robust' as content being interpretable by various user agents, including assistive technologies.

Where people lose the point

  • Forgetting one or more of the POUR principles.
  • Providing vague or incorrect explanations for each principle.
  • Confusing the principles with specific WCAG guidelines or success criteria.
Link to this question

2.Why is `alt` text important for images, and what makes good `alt` text?

Warm-up

What a strong answer covers

  • Explain that `alt` text provides a textual description of an image for users who cannot see it (e.g., screen reader users, broken images).
  • State its importance for conveying information, context, and functionality.
  • Describe good `alt` text as concise, descriptive, and conveying the image's purpose or content.
  • Mention avoiding phrases like 'image of' or 'picture of' and ensuring it's not redundant if text nearby already describes the image.

Where people lose the point

  • Providing `alt` text that is too long or too short to be useful.
  • Using `alt` text for decorative images instead of an empty `alt=""` attribute.
  • Focusing only on screen readers and forgetting other use cases like broken images or text-only browsers.
Link to this question

3.Explain the primary benefit of using semantic HTML elements for accessibility.

Warm-up

What a strong answer covers

  • State that semantic HTML provides inherent meaning and structure to content.
  • Explain how this meaning is conveyed to assistive technologies (like screen readers) without extra effort.
  • Mention that semantic elements often come with built-in accessibility features (e.g., keyboard interaction for `<button>`).
  • Contrast this with non-semantic elements (like `<div>`) which require ARIA and JavaScript to achieve the same accessibility.

Where people lose the point

  • Focusing only on SEO benefits rather than accessibility benefits.
  • Failing to explain *how* semantic HTML helps assistive technologies.
  • Suggesting that semantic HTML completely eliminates the need for ARIA.
Link to this question

4.When would you use `tabindex="0"`?

Warm-up

What a strong answer covers

  • Explain that `tabindex="0"` makes an element focusable via keyboard in its natural tab order.
  • State that it's used for non-interactive elements (like `<div>` or `<span>`) that need to receive focus.
  • Provide examples such as making custom controls focusable or allowing users to focus on static content that becomes interactive.
  • Emphasize that it should be used sparingly and only when a native interactive element isn't suitable.

Where people lose the point

  • Confusing `tabindex="0"` with `tabindex="-1"` or positive `tabindex` values.
  • Suggesting it's a replacement for using native interactive elements like `<button>` or `<a>`.
  • Not mentioning the importance of its natural tab order behavior.
Link to this question

5.Explain the 'first rule of ARIA' and provide an example of when to follow it.

Core

What a strong answer covers

  • State the 'first rule of ARIA': If a native HTML element or attribute already provides the semantic meaning and behavior you need, use it instead of ARIA.
  • Explain that native HTML elements have built-in accessibility features that are robust and widely supported.
  • Provide an example: Using `<button>` instead of a `<div>` with `role="button"` and `tabindex="0"`.
  • Elaborate on why the native element is superior (e.g., keyboard interaction, focus management, browser support).

Where people lose the point

  • Incorrectly stating the rule or misinterpreting its meaning.
  • Providing an example where ARIA is actually necessary, rather than where native HTML suffices.
  • Failing to explain *why* native HTML is preferred over ARIA in such cases.
Link to this question

6.Describe the WCAG requirements for color contrast and why it's important.

Core

What a strong answer covers

  • Explain that color contrast refers to the difference in luminance between foreground (text) and background colors.
  • State the WCAG AA minimum contrast ratios: 4.5:1 for normal text and 3:1 for large text (18pt or 14pt bold).
  • Mention the AAA level (7:1 for normal text) as an enhanced goal.
  • Explain its importance for users with low vision, color blindness, or in challenging viewing conditions (e.g., bright sunlight) to ensure readability.
  • Note that contrast applies to meaningful graphical objects and UI components, not just text.

Where people lose the point

  • Forgetting the specific contrast ratios for AA compliance.
  • Not mentioning the distinction between normal and large text.
  • Failing to explain *why* color contrast is important for different user groups.
Link to this question

7.How would you ensure a modal dialog is accessible, particularly regarding focus management?

Core

What a strong answer covers

  • Explain that focus must be trapped within the modal when it's open, preventing users from tabbing to background content.
  • Describe how to programmatically move focus to the first interactive element inside the modal when it opens.
  • Explain that focus should return to the element that triggered the modal when it closes.
  • Mention using `aria-modal="true"` and `aria-labelledby` to associate the modal with its title for screen readers.
  • Discuss handling keyboard interactions like `Escape` to close the modal.

Where people lose the point

  • Forgetting to return focus to the triggering element after the modal closes.
  • Not mentioning the need to trap focus within the modal.
  • Overlooking the importance of keyboard interaction (e.g., Escape key to close).
Link to this question

9.How do you make dynamic content updates (e.g., live regions) accessible to screen reader users?

Core

What a strong answer covers

  • Explain that dynamic content updates often go unnoticed by screen readers unless explicitly announced.
  • Introduce `aria-live` regions (`aria-live="polite"` or `aria-live="assertive"`) to inform screen readers of changes.
  • Describe `aria-live="polite"` for non-urgent updates (e.g., search results, stock tickers) that don't interrupt the user.
  • Describe `aria-live="assertive"` for urgent, time-sensitive updates (e.g., error messages, critical status changes) that interrupt immediately.
  • Mention `role="status"` or `role="alert"` as specific live region roles.

Where people lose the point

  • Confusing `polite` and `assertive` live region behaviors.
  • Suggesting that all dynamic content needs `aria-live` (only meaningful, non-focus-driven changes).
  • Not mentioning the importance of placing the `aria-live` attribute on a stable container element.
Link to this question

10.Discuss best practices for accessible form labels.

Core

What a strong answer covers

  • Emphasize using the `<label>` element and associating it explicitly with its form control using `for` and `id` attributes.
  • Explain that explicit association ensures screen readers announce the label when the control receives focus.
  • Mention that clicking the label should activate the associated control, improving usability for all users.
  • Discuss avoiding placeholder text as a substitute for labels, as it disappears on input and lacks persistent context.
  • Suggest providing clear, concise, and descriptive labels for all form fields.

Where people lose the point

  • Suggesting `placeholder` text is an adequate substitute for a `<label>` element.
  • Forgetting the `for`/`id` association and relying only on visual proximity.
  • Not mentioning the benefit of clicking the label to activate the control.
Link to this question

11.How do you handle accessibility concerns in a Single Page Application (SPA) when routing changes?

Hard

What a strong answer covers

  • Explain that SPAs don't trigger full page reloads, so screen readers don't automatically announce new page titles or content changes.
  • Describe the need to programmatically update the document title (`document.title`) to reflect the new 'page'.
  • Explain the importance of programmatically moving focus to the main content area of the new 'page' after a route change.
  • Mention using `aria-live` regions for dynamic content within the SPA that changes without a route update.
  • Discuss ensuring all interactive elements in the new view are keyboard accessible and have visible focus indicators.

Where people lose the point

  • Forgetting to update the document title, which is crucial for screen reader users to understand context.
  • Not moving focus to the new content, leaving screen reader users disoriented.
  • Assuming browser history management automatically handles accessibility for SPAs.
Link to this question

12.You're building a custom dropdown component. What ARIA attributes and keyboard interactions would you implement to make it accessible?

Hard

What a strong answer covers

  • **ARIA Attributes:** Use `role="combobox"` for the input/trigger, `aria-haspopup="listbox"` to indicate a popup, `aria-expanded` to show open/closed state, `aria-controls` to link to the listbox, `role="listbox"` for the dropdown container, `role="option"` for each item, and `aria-selected` for the currently selected option.
  • **Keyboard Interactions:** Implement `Tab` to move focus into and out of the component, `Enter`/`Space` to open/close the dropdown and select an option, `Up`/`Down` arrows to navigate options within the open dropdown.
  • **Focus Management:** Ensure focus is managed correctly when opening/closing the dropdown and when navigating options.
  • **Visual Cues:** Provide clear visual focus indicators for the trigger and each option.
  • **Escape Key:** Allow `Escape` to close the dropdown without selecting an option.

Where people lose the point

  • Missing critical ARIA attributes like `aria-expanded` or `role="listbox"`.
  • Failing to implement essential keyboard interactions (e.g., arrow keys for navigation).
  • Not considering focus management when the dropdown opens or closes, or when an option is selected.
Link to this question

13.Outline a comprehensive accessibility testing strategy for a new web application.

Hard

What a strong answer covers

  • **Automated Testing:** Integrate tools like Axe DevTools, Lighthouse, or WAVE into CI/CD pipelines and development workflows to catch common, easily detectable issues early.
  • **Manual Keyboard Testing:** Systematically navigate the entire application using only the keyboard to check tab order, focus indicators, and operability of all interactive elements.
  • **Screen Reader Testing:** Test with at least one popular screen reader (e.g., NVDA on Windows, VoiceOver on macOS) to understand the user experience for visually impaired users.
  • **Color Contrast & Zoom Testing:** Manually verify color contrast for critical elements and test page responsiveness at various zoom levels (up to 200%).
  • **User Testing:** Conduct testing with actual users with diverse disabilities to gain invaluable real-world feedback and uncover issues missed by other methods.

Where people lose the point

  • Relying solely on automated testing and believing it covers all accessibility issues.
  • Omitting manual keyboard or screen reader testing, which are crucial for operability and perception.
  • Not mentioning the importance of testing with actual users with disabilities.
Link to this question

14.When should you use ARIA attributes instead of native HTML elements, and what are the potential pitfalls?

Hard

What a strong answer covers

  • **When to use ARIA:** When native HTML elements lack the semantic meaning or behavior required for complex UI components (e.g., custom sliders, tree views, tab panels) or dynamic content updates.
  • **When to use ARIA:** To enhance the accessibility of existing HTML elements that are not inherently accessible (e.g., adding `aria-label` to an icon-only button).
  • **Potential Pitfalls:** Overusing ARIA when native HTML suffices (violating the first rule of ARIA), leading to redundant or conflicting semantics.
  • **Potential Pitfalls:** Incorrectly implementing ARIA, which can break accessibility rather than improve it (e.g., wrong roles, missing states).
  • **Potential Pitfalls:** ARIA only adds semantics; it doesn't provide behavior. Developers must still implement keyboard interaction and focus management with JavaScript.

Where people lose the point

  • Suggesting ARIA is a replacement for semantic HTML rather than a supplement.
  • Failing to mention that ARIA doesn't automatically provide behavior (e.g., keyboard interaction).
  • Not highlighting the risk of *degrading* accessibility through incorrect ARIA usage.
Link to this question

15.How can you make error messages in forms accessible to all users?

Hard

What a strong answer covers

  • **Visual Cues:** Provide clear, visible error messages near the relevant form field, using more than just color (e.g., text, icons).
  • **Programmatic Association:** Link error messages to their respective form fields using `aria-describedby` to ensure screen readers announce the error when the field is focused.
  • **Live Regions:** Use `aria-live="assertive"` on a container for general form submission errors to announce them immediately to screen reader users.
  • **Focus Management:** Programmatically move focus to the first erroneous field upon form submission to guide users directly to the problem.
  • **Clear Instructions:** Provide clear, actionable instructions on how to correct the error.

Where people lose the point

  • Relying solely on visual cues (like red text) without programmatic association or live region announcements.
  • Forgetting to move focus to the first error, forcing screen reader users to search for it.
  • Providing vague error messages that don't clearly explain the problem or how to fix it.
Link to this question
No account needed

Answer one real Web Accessibility question now

A question a Web Accessibility panel actually asks, answered out loud, scored on what you said and how you said it. Under two minutes, and nothing to sign up for.

What are the four main principles of WCAG, and briefly explain each?

We never store the audio. Your answer is deleted within 24 hours unless you save the result.

How Web Accessibility answers get judged

The weights a Web Accessibility interviewer is holding, whether or not they say so out loud. Round Zero scores your practice answers against exactly these, and quotes your own words back as the evidence for each.

Technical Correctness

30%

The accuracy of technical details, adherence to WCAG standards, and proper use of HTML/ARIA.

Conceptual Depth

30%

Understanding of underlying accessibility principles, the 'why' behind practices, and implications for different user groups.

Practical Application

25%

Ability to translate knowledge into actionable implementation strategies and real-world solutions.

Communication Clarity

15%

Clarity, organization, and conciseness of the explanation, demonstrating effective communication skills.

Role tracks that include Web Accessibility

Related Frontend skills

All skills →

Now say them out loud

You have read what strong Web Accessibility answers contain. The next thing that moves the needle is producing one under time, out loud, and finding out where it falls apart.

  • These questions asked back, with follow-ups
  • Flashcards for the ones you keep missing
  • A scored mock that quotes your own answers

Browse every skill

Practising Web Accessibility: common questions

What Web Accessibility interview questions should I practice?
Start with the core areas Web Accessibility interviewers probe: What are the four main principles of WCAG, and briefly explain each; Why is `alt` text important for images, and what makes good `alt` text; Explain the primary benefit of using semantic HTML elements for accessibility.. This page outlines strong answers and common mistakes, and the scored path drills each one with follow-ups.
Is the Web Accessibility practice free?
Yes. The Web Accessibility path runs free inside Round Zero: lessons, practice questions and flashcards. Drills are unlimited on every plan, free included. So is the full scorecard. Free also covers 3 complete scored interviews, no card.
How is this different from a Web Accessibility question list?
A static list gives you questions with no feedback. Round Zero runs a live scored practice that probes your actual answers, rotates difficulty, and tells you exactly what to fix, grounded in a Web Accessibility rubric.
How should I prepare for a Web Accessibility interview?
Learn the concepts, drill the questions until answers come fast, then prove it in a scored mock. Round Zero sequences all three so you know you are ready, not just that you read about Web Accessibility.
How is a Web Accessibility answer scored?
Web Accessibility answers are scored on technical correctness, conceptual depth, practical application, communication clarity, with evidence quoted from what you actually said, so feedback is specific instead of generic praise.