Accessibility is about making your website usable by as many people as possible. We need to take care of four diverse groups of people:
- People with visual impairments
- People with hearing impairments
- People with mobility impairments
- People with cognitive impairments
You can find more information about each type of impairment on βWhat is Accessibilityβ on MDN.
WCAG
Web Content Accessibility Guidelines (WCAG) is a guideline for accessible websites. This guideline states that content must be:
- Perceivable
- Operable
- Understandable
- Robust
Loosely translated, they mean:
- Perceivable: Users must be able to see and hear the information on the website
- Operable: Users must be able to use everything on the website with a keyboard
- Understandable: Users must be able to understand and use the website
- Robust: The website should support as many browsers and screen readers as possible
Thereβs a fifth principle that WCAG failed to mention:
Principle Number 5: Reduce Annoyance. Your content should annoy people as little as possible.
Take these principles into consideration as you build components. Theyβll help you make your sites more accessible.
Accessibility and JavaScript
When it comes to JavaScript, what weβre interested in is people who are visually impaired and need to use screen readers. For this reason, weβll put our focus on screen readers for the entire module.
Note: Donβt assume all screen reader users are blind. Many of them arenβt!
Welcome! Unfortunately, you donβt have access to this lesson. To get access, please purchase the course or enroll in Magical Dev School.
Unlock this lesson