Web Accessibility Questions

This quiz covers web accessibility questions often asked in front-end interviews: alt text, native elements vs ARIA, keyboard focus, live regions and WCAG contrast ratios. It is a good check before an interview or an accessibility review.

Medium 10 questions ~6 minutes Pass at 80%

Choose a mode

Playing as a guest: sign in to keep your XP and streak.

Sample question

Question 1 of 10

A purely decorative swirl image sits next to a heading. What is the best markup?

Show the answer

C. <img src="swirl.png" alt=""> An empty alt="" tells screen readers to skip the image. Leaving alt out often makes them read the file name, and "swirl image" is just noise. (A CSS background image is another option.)

What this quiz covers

  • Alt text for informative and decorative images
  • Native elements first, ARIA labels second
  • Keyboard focus: tabindex, focus outlines and skip links
  • aria-hidden and aria-live
  • WCAG contrast ratios and the lang attribute

Questions people ask

Do I need an account?

No. Anyone can play. Sign in to keep your XP, streak, badges and history.

Can I retake it?

Yes. Your best score is kept, and the questions and answers are shuffled each time.