Web Accessibility for Beginners / Chapter 1 — Who It's For (lessons 1–4) / Lesson 1

Who Is Accessibility For?

Time needed: about 10 min (estimate)

☆ Read later

You can try the opening of this lesson without an account.

It's not a feature for "some people"

Accessibility (also written a11y, for the 11 letters in the middle) means that people in all kinds of situations can use the same page.

It's not about adding special features.

Most of the work is writing HTML the way the spec intends.

In this course, you'll find out exactly what "the way the spec intends" means by actually measuring it in the browser.

On the same page, who struggles with what?

The ways people struggle vary enormously.

If you only remember it as "for people who can't see," you'll forget about people who can only use a keyboard or who read with the page zoomed in.

First, let's list what becomes a barrier under which conditions.

Conditions and the barriers they hit

Condition Barrier -------------------------- ------------------------------------------ Can't see the screen Images without alt / unnamed buttons / headings made of divs Low vision, uses zoom Fixed heights / text sizes hard-coded in px / faint colors Hard to tell colors apart Wording like "Please fix the fields in red" Can't use a mouse Buttons made from a div with onclick / outline: none Shaky hands, large fingers Tap targets smaller than 24px square Motion makes them unwell Carousels that never stop / full-screen parallax effects Can't hear Videos without captions Reads slowly Toasts that vanish on their own / forms with time limits

What you see on screen and the structure machines read are two different things

From your HTML, the browser builds a structure called the "accessibility tree," separately from drawing the screen.

That's what screen readers and voice input read.

No matter how much you style something with CSS to look like a heading, if it's still a <div>, it won't show up in this tree as a heading.

The example below takes two blocks that look the same and lists only the ones the browser recognized as headings.

editor.html

Tab indents. To leave the editor, press Esc, then Tab.

Create a free account to keep reading

With an account you can read the rest of this lesson, take the quiz, and read every free lesson in this course. Lessons you answer correctly are recorded as complete.

Report a problem with this lesson

Log in to send a report.

Keyboard shortcuts

Keys available in a lesson
KeyAction
[ or Alt + ←Go to the previous lesson
] or Alt + →Go to the next lesson
?Open this list
EscClose this list

The keys do not work while the cursor is in a code editor or an input field.