Lesson 6 of 30
WCAG isn't a vague 'be accessible' request — it's a specific, versioned, testable standard organized under four principles, with numbered success criteria and conformance levels. Interviews test whether you know the shape of it, not just the vibe.
14 min read
Every option explains itself — why the right one is right, and why each wrong one is wrong. Miss one and it comes back later on a spaced-repetition schedule.
Question 1 of 3
A `<div onClick={submit}>Submit</div>` is styled to look pixel-identical to a real `<button>`. Which WCAG principle does the div most directly fail, independent of how it looks?
Hints without spoilers, and a plain explanation of why a wrong answer was wrong — answered only from this lesson. Free account, no card.
Sign up freeWhat interviewers actually ask about this, and what a strong answer has to cover.
A strong answer covers
Likely follow-ups
WCAG (Web Content Accessibility Guidelines, maintained by the W3C) is organized under four principles, easy to remember as POUR:
Each principle breaks down into numbered success criteria (e.g. 1.4.3 is the color-contrast requirement from the first lesson in this track) rated at three conformance levels — A (minimum), AA (the level almost every product targets, and the one most interview questions assume by default), and AAA (the strictest, usually reserved for content specifically serving low-vision or otherwise high-need users).
<div onClick={submit}>Submit</div> — looks like a button. Tab to it? A keyboard can't even reach it.
A <div onClick> and a <button> can be styled to look pixel-identical — and that's exactly the trap. WCAG's Robust principle (specifically success criterion 4.1.2, Name/Role/Value) is about what a screen reader or other assistive technology can actually determine from the markup, completely independent of how it looks. A div has no role, no keyboard focusability, and nothing to announce; a real <button> gets all three for free, from the browser, at zero extra code.
"What does WCAG AA actually require?" separates candidates who've absorbed accessibility as folklore ("make sure it works with a screen reader") from candidates who can name the actual structure: four principles, numbered criteria, three conformance levels, AA as the practical target. The genuinely strong signal is naming a specific criterion — like 1.4.3 for contrast or 2.1.1 for keyboard access — not just gesturing at the general idea.