Accessibility (a11y)
In one line
Web accessibility means designing websites so that people with disabilities can perceive, understand, navigate, and interact with them.
In simple words
Accessibility (often abbreviated "a11y") is about making the web usable for everyone, including people with visual, motor, cognitive, or auditory disabilities. This includes screen reader users, keyboard-only users, people with color blindness, and many others.
Key practices include: using semantic HTML (screen readers rely on it), adding alt text to images, associating labels with form fields, ensuring sufficient color contrast, making all functionality keyboard-accessible, and using ARIA attributes when HTML alone is not enough.
Accessibility is not optional — it is a legal requirement in many countries and a moral imperative. The WCAG (Web Content Accessibility Guidelines) provide the standard. Good accessibility often improves the experience for all users, not just those with disabilities.
Example
<!-- Accessible form field -->
<label for="email">Email address</label>
<input type="email" id="email" name="email" required aria-describedby="email-hint">
<p id="email-hint">We will never share your email.</p>The label is associated with the input via for/id, and aria-describedby links a hint text for screen readers.
Related terms
Related Resources
Related Lessons
- HTML Accessibility
Learn web accessibility.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.