WCAG and Inclusive Design Principles
The POUR principles, WCAG 2.2 AA success criteria, colour contrast and motion, and why accessibility is a legal and product requirement.
Intermediate · about 4 hours · difficulty 2/5
Learn first: Semantic and Accessible HTML, Responsive Design
Around one in six people lives with a disability, and everyone is temporarily impaired sometimes: a broken arm, bright sunlight, a noisy train. Accessibility (a11y) is also a legal requirement in many regions (the ADA in the US, the European Accessibility Act, and similar laws elsewhere), so companies expect frontend developers to know the standard.
WCAG in a nutshell
The Web Content Accessibility Guidelines are organised under four principles, POUR:
- Perceivable: text alternatives for images, captions for video, sufficient colour contrast, content that does not rely on colour alone.
- Operable: everything works with a keyboard, users have enough time, nothing flashes dangerously, clear navigation.
- Understandable: readable language, predictable behaviour, helpful error messages and labels.
- Robust: valid, semantic markup that assistive technologies can interpret.
Each guideline has testable success criteria at levels A, AA and AAA. WCAG 2.2 level AA is the usual target in contracts and law.
Criteria you will meet daily
- Contrast of at least 4.5:1 for normal text and 3:1 for large text and UI components.
- Visible focus indicators, and focused elements not hidden behind sticky headers.
- Target sizes large enough to tap (at least 24 by 24 CSS pixels).
- Text that can resize to 200% and reflow at narrow widths without horizontal scrolling.
- Respect
prefers-reduced-motionfor large animations.
Good enough to move on
You can explain POUR, check contrast with DevTools, list ten common AA criteria and include accessibility acceptance criteria when you plan a feature.
Key concepts
- Why accessibility matters
- POUR principles
- WCAG levels A, AA and AAA
- Colour contrast and use of colour
- Resize, reflow and target size
- Reduced motion and flashing
- Accessibility laws and conformance
Mini project
Audit a popular website against a WCAG 2.2 AA checklist of 15 criteria, record each failure with a screenshot and the relevant success criterion, and propose a fix for each.
Check yourself
Light grey text (#999) on white fails WCAG AA. What contrast ratio does normal-size body text need?
Free resources
- WCAG 2 Overview (W3C WAI)
- How to Meet WCAG (Quick Reference) (W3C WAI)
- Learn Accessibility (web.dev)