Accessibility (a11y) means building pages people with disabilities can use — with screen readers, keyboards, and other assistive technology. Much of it comes free from writing good semantic HTML.
The foundations
- Semantic HTML — headings, landmarks, lists give structure screen readers announce.
- alt text on images; captions on video.
- Labels on every form control.
- Keyboard access — everything usable without a mouse (links, buttons are focusable by default).
- Colour contrast — text readable against its background.
ARIA — when HTML isn't enough
<button aria-label="Close" onclick="...">×</button> <!-- accessible name --><div role="alert">Form saved!</div> <!-- announced to screen readers --><nav aria-label="Main">…</nav>
Key takeaways
- 01Accessibility means everyone can use your page, including with assistive tech.
- 02Most of it is free: semantic HTML, alt text, labels, keyboard access, colour contrast.
- 03ARIA attributes add accessibility info when native HTML can't.
- 04First rule of ARIA: prefer a native element (real <button>) over ARIA hacks.
