Skip to main content
Albero Academy

Accessibility

Build pages everyone can use, including with assistive tech.

Best Practices9 min

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

ARIA fills gaps
<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

  1. 01Accessibility means everyone can use your page, including with assistive tech.
  2. 02Most of it is free: semantic HTML, alt text, labels, keyboard access, colour contrast.
  3. 03ARIA attributes add accessibility info when native HTML can't.
  4. 04First rule of ARIA: prefer a native element (real <button>) over ARIA hacks.

Finished this chapter?

Mark it complete to track your progress through HTML.