WCAG principles
The web accessibility guidelines, built on four principles.
The Web Content Accessibility Guidelines set the reference standard, and many laws point to them. Knowing the four principles and the common success criteria covers most everyday work. Automated checkers find only part of the problems.
Why it matters for a product engineer
The Web Content Accessibility Guidelines (WCAG) are the reference for making a product usable by people with disabilities, and many laws point to them. Most of the fixes live in code: markup, labels, focus, contrast, keyboard support. An engineer who knows the main criteria prevents most problems while building, when they are cheap.
How to do it
- Learn the four principles. Content must be perceivable, operable, understandable and robust.
- Use the right HTML element for each job: buttons for actions, links for navigation, labels for inputs, headings in order.
- Check contrast for text and for controls, in light and dark mode.
- Use the product with only a keyboard: every action reachable, focus always visible, no traps.
- Run an automated checker in development and in CI. It finds part of the problems, not all.
- Test the main tasks with a screen reader, and fix what blocks them first.
Common mistakes
- Treating accessibility as a final audit instead of part of each feature.
- Trusting an automated score of 100 as proof of conformance.
- Divs and spans with click handlers instead of buttons.
- Images without alternative text, or with text that repeats the file name.
- Hiding the focus outline because it looks untidy.
Example
Each year WebAIM tests the home pages of the top million websites. In 2026, 95.9% had WCAG failures that a tool could detect, with 56.1 errors per page on average. 96% of all the errors fell into six types, and these have been the same for seven years. Fixing those six would remove most of the barriers.
The six most common WCAG failures, share of the top million home pages
- Low contrast text83.9%
- Missing alternative text for images53.1%
- Missing form input labels51%
- Empty links46.3%
- Empty buttons30.6%
- Missing document language13.5%
All six are basic, and all six are in the code. Most of them a linter can catch before release.
MeasuredWebAIM, The WebAIM Million, 2026 report
Sources: The WebAIM Million, 2026 report (WebAIM) ↗ · Quick reference to web accessibility principles (WebAIM) ↗
Resources
3- docsStart here
Quick reference to web accessibility principles ↗
WebAIM · 2023 · 3 minThe main WCAG principles on one printable page.
- articleGo deeper
Contrast and color accessibility: understanding WCAG 2 requirements ↗
WebAIM · 2021 · 12 minThe contrast rules explained in detail, including large text and not relying on color alone.
- articleGo deeper
Web accessibility evaluation guide ↗
WebAIM · 2024 · 12 minA step-by-step manual review that catches what automated tools miss.
Tools
2- ToolFree
- ToolFreemium
axe DevTools
Automated accessibility checks in the browser and in tests, built on the open-source axe-core engine.