Kayavak / The Web Frontend / FE·20 Accessibility / Deeper
Deeper · The Web Frontend
Accessibility
The questions the chapter doesn't stop for: why this exists, the model to keep in your head, what changes when an assumption does, how sure we are of each claim, and what's still open. Read it after the chapter; back to the chapter.
Why does this exist?
Disabled people were among the web's earliest enthusiasts, because text that a screen reader can speak is more usable than printed paper. But as pages turned into images, tables-for-layout and script-built widgets, they broke for those same users. The W3C launched the Web Accessibility Initiative in 1997 and published WCAG 1.0 in 1999; WCAG 2.0 (2008) restated the guidelines as testable success criteria, organised by the four principles perceivable, operable, understandable and robust; 2.1 (2018) and 2.2 (2023) added mobile, low-vision and cognitive needs.
Law followed. The US Americans with Disabilities Act (1990) and Section 508 (amended 1998 to cover electronic information) were applied to websites through court cases; the European Accessibility Act applies to many products and services from June 2025. WAI-ARIA (a Recommendation in 2014) gave script-built widgets a way to tell assistive technology what they are, because HTML lacked native elements for many of them.
The mental model
Try it yourself first: write your own model in the Mental Model Explorer, then compare.
Every interface is presented to people through more than one channel: sight, hearing, touch, keyboard, voice, switches. Accessibility means the meaning and every action are available through each of them, not only the one you designed for.
| Question | Answer |
|---|---|
| What is it? | Building interfaces usable by people with permanent, temporary or situational disabilities |
| Problem it solves | Excluding nobody from information and services, which is also a legal requirement in many places |
| Parts | Semantics (roles, names, states), keyboard and focus, visual design (contrast, size, motion), content (language, structure) |
| How it works | The browser builds an accessibility tree from the DOM; assistive technology reads and acts on that tree |
| Assumptions | Native elements are used for what they mean; names and states are kept up to date |
| When they change | Custom widgets without roles, names or keyboard support are invisible or unusable to assistive technology |
| Where it fails | Automated checks find only part of the problems; real use with a screen reader and keyboard finds the rest |
| Related ideas | Semantic HTML (ch13); design systems bake it in once (ch21); testing (ch26) |
What if?
What if you couldn't use a mouse for a day?
Reason it through, then open
On a well-built site nothing changes: Tab moves through links and controls in a sensible order, focus is always visible, menus open with Enter and close with Escape. On many sites you'd meet controls you can't reach, focus that vanishes or gets trapped in a dialog behind an overlay, and hover-only menus. Keyboard access matters to screen reader users, switch users, voice-control users and anyone with a broken trackpad.
What if colour were the only signal of an error?
Reason it through, then open
About one in twelve men and one in two hundred women have some colour-vision deficiency, and the most common types make red and green hard to tell apart. A red border alone wouldn't tell them which field is wrong; a screen reader wouldn't announce it at all. WCAG requires that colour never be the only means of conveying information: add text, an icon, and a programmatic link between the field and its error message.
Where the boundary is
| Aspect | Native HTML | ARIA |
|---|---|---|
| Changes | Semantics and behaviour (focus, keyboard, form participation) | Semantics only: role, name, state |
A role="button" on a div |
Still needs tabindex, Enter and Space handling written by you |
|
| First rule | Use it whenever an element exists | Use it only to fill gaps HTML can't |
| Risk | Low | Bad ARIA misinforms users, which is worse than none |
How sure are we?
| Claim | How it's known | Where from |
|---|---|---|
| WCAG 2.2 was published in October 2023 | Historical | W3C |
| Automated tools catch only part of accessibility problems | Measured | Studies such as the UK Government Digital Service's 2017 test found automated tools caught at most about 40% of seeded barriers |
| About 8% of men and 0.5% of women of Northern European ancestry have colour-vision deficiency | Measured | Population studies; rates vary between populations |
| Accessible design helps everyone ("curb-cut effect") | Model | Many examples (captions, keyboard shortcuts); not a law |
Still open
Cognitive accessibility (plain language, predictable layouts, memory load) is the least specified area and the subject of ongoing W3C work; WCAG 3 is in development with a different, scored model. How AI-generated alt text and automatic fixes should be used is debated.
What would change your mind? If automated checks reliably found nearly all barriers, manual testing with assistive technology could be reduced. Current evidence says they find well under half.
Recall
What are the four WCAG principles?
Perceivable, operable, understandable, robust.
What does ARIA change, and what doesn't it?
It changes semantics (role, name, state), not behaviour; keyboard support must still be built.
Why can't colour alone signal an error?
Many people can't distinguish the colours, and screen readers don't announce them.
Can automated tools certify a page accessible?
No; they find only part of the problems, so manual and assistive-technology testing is still needed.
Reflect
Be honest with yourself; this stays in your browser. Anything you can't tick yet is what to revisit.