International accessibility standards, including Section 508 (United States), the European Accessibility Act (EU), and the Accessibility for Ontarians with Disabilities Act (Canada), use WCAG as their technical foundation while adding region-specific requirements.
WCAG 2.2 groups accessibility requirements into four principles:
The Web Content Accessibility Guidelines (WCAG) define three conformance levels: A (minimum), AA (standard), and AAA (enhanced).
These levels guide web developers in achieving various degrees of accessibility compliance.
Semantic HTML elements, such as <header>, <nav>, and <main>, provide structure and meaning to content. This enhances accessibility by helping assistive technologies interpret sections for easier navigation.
<header><nav>Navigation links</nav></header><main><article><section>Article Content</section></article></main><footer>Footer information</footer>
Headings (H1-H6) establish a logical structure for content, aiding screen readers in navigation. Start with H1 for main titles, and organize content hierarchically without skipping levels.
<h1>Page Title</h1><h2>Section Title</h2><h3>Subsection Title</h3>
Alternative text describes the content and function of images:
alt attributes.<!-- Informative image - describes the content --><img src="chart.png" alt="Bar chart showing 60% increase in mobile users from 2023 to 2024"><!-- Decorative image - empty alt attribute --><img src="decorative-border.png" alt=""><!-- Functional image - Logo that's also a link - identifies the destination --><a href="/"><img src="logo.jpg" alt="Company Name home"></a>
ARIA attributes improve HTML accessibility by defining roles, states, and properties for elements, enhancing the user experience for those relying on assistive technologies.
In the example code, the aria-label in the <nav> element provides a descriptive name to distinguish it from other navigation landmarks on the page (like footer navigation or breadcrumbs), which is especially helpful for screen reader users navigating by landmarks.
<nav aria-label="Main navigation"><ul><li><a href="/">Home</a></li><li><a href="/about">About</a></li></ul></nav>
Section 508 of the Rehabilitation Act requires U.S. federal agencies and contractors to make electronic and information technology accessible, referencing WCAG 2.0 Level AA as the technical benchmark.
Accessibility guidelines like WCAG provide technical standards for implementation, while accessibility legislation like Section 508 creates legal mandates requiring compliance with those standards.