Bookmarks
ReferenceFrontendVerified

Accessibility (a11y)

Accessibility (a11y) is the practice of building websites that everyone can use. The reference covers WCAG, ARIA, keyboard and focus, forms, contrast and testing.

checked 1 Nov · next check 8 Nov · 54 min read

Sections
12
Reading
54 min
Languages
RU · UZ · EN
Written from
w3.org/TR/WCAG22

Check status of the reference

Verified 1 Nov · next check 8 Nov

The sections were compared with the release notes, the check found nothing, and all source links respond.

  1. Verified
  2. Scheduled check

What accessibility is and how it works

Accessibility (a11y) is a property of a website that lets people with visual, hearing, motor, speech and cognitive impairments use it. The WCAG standard sets the requirements, and you test it with a keyboard and a screen reader.

Accessibility covers every kind of impairment that makes the web hard to use: hearing, cognitive, neurological, physical, speech and visual. It also helps people without disabilities: older people, someone with a broken arm, a user on a phone in bright sunlight or where sound cannot be turned on, anyone on a slow connection. Build it in from the start of the project: that way you will not have to rework a finished interface.

How people use the web

  • A screen reader reads a page aloud or outputs it to a braille display.
  • A screen magnifier enlarges part of the screen for people with low vision.
  • Speech recognition and switches replace the keyboard and mouse for people who cannot use them.
  • Keyboard only: many people do not use a mouse, and voice input works through the same keyboard commands.
  • The user’s own techniques: larger text, captions, a slower mouse pointer.

A screen reader does not see the screen: it receives what the browser reports about the page. The browser builds a DOM tree from the markup, and from that an accessibility tree. Every object in it has a role (what it is: a button, a link, a list), a name (what to call it), a state (whether a checkbox is ticked, whether a disclosure is expanded) and a description. The screen reader gets this data through the operating system’s accessibility API. For a blind user, the accessibility tree is the page.

Everything a screen reader says about a button comes from its object in the accessibility tree.
  1. The browser parses the HTML and builds a DOM tree.
  2. From the DOM tree the browser builds the accessibility tree: the role, name, state and description of each element.
  3. The operating system’s accessibility API passes this data to assistive technologies.
  4. The screen reader speaks the objects of the tree or outputs them to a braille display.
  5. The user controls the page from the keyboard, including with the screen reader’s own commands.

So start with correct HTML markup rather than extra attributes: screen readers handle headings, lists, links and buttons marked up with their own elements far better. When there is no suitable element, you need ARIA — it is covered in the section “ARIA: roles, names and states”.

How it differs from usability and inclusive design

ApproachWhat it coversHow it differs
Accessibilitypeople with disabilities can perceive, understand, navigate and interact on an equal footing with otherstechnical requirements for code and design; the standard is WCAG
Usabilitythe product is effective, efficient and satisfying to use (ISO 9241-11)concerns everyone and often overlooks people with disabilities
Inclusive designas many people as possible taking part: technology, communications, education, language, agebroader than accessibility: disability is one of many topics

The three approaches overlap, and W3C advises working on them together. But a usability test on its own will not find a blind user’s problems: you need both the WCAG requirements and testing with people with disabilities.

What to know in advance

  • Semantic HTML elements — the HTML and CSS reference, section “Semantic markup”.
  • Forms and input fields — the HTML and CSS reference, section “Forms and input fields”.
  • Handling key presses in code — the JavaScript reference, section “Events”.

Section sources

the section is written from these pages

Checklist

Run through this list before releasing a page and when signing off a design: it covers the core WCAG 2.2 level AA requirements. The success criterion number is given in brackets; each point is explained in its own section of the reference.

Structure

  • Set the page language: <html lang="ru"> (3.1.1).
  • Give each page its own <title> that describes its topic or purpose (2.4.2).
  • Start the content with h1 and don’t skip heading levels (1.3.1).
  • Mark up the header, nav, main and footer regions (1.3.1).
  • Put a “Skip to content” link to main at the top of the page (2.4.1).

Images and media

  • Give every informative image an alt that conveys its meaning, not its file name (1.1.1).
  • Give decorative images alt="" (1.1.1).
  • Add captions to video with sound (1.2.2) and audio description where important content is only visible on screen (1.2.5).
  • Let users stop sound that plays automatically for longer than 3 seconds (1.4.2).

Keyboard and focus

  • Check that everything works from the keyboard: Tab, Shift+Tab, Enter, Space, Esc and the arrow keys (2.1.1).
  • Make sure keyboard users can leave any element: no keyboard traps (2.1.2).
  • Keep the focus order the same as the reading order (2.4.3).
  • Keep focus visible: don’t remove outline without a replacement (2.4.7).
  • Don’t cover the focused element with a sticky header or banner (2.4.11).
  • Open modal dialogs with <dialog> and showModal(), and return focus to the button that opened them after closing (2.4.3).

Forms

  • Give every field a visible <label>; a placeholder does not replace it (3.3.2).
  • Report errors in text next to the field and suggest how to fix them (3.3.1, 3.3.3).
  • Add autocomplete to fields holding user data: name, email, phone (1.3.5).
  • Allow pasting passwords and codes when signing in, and don’t require puzzles (3.3.8).

Colour and scaling

  • Keep text contrast at least 4.5:1 and large text at least 3:1 (1.4.3).
  • Keep the contrast of input borders, icons and the focus indicator at least 3:1 (1.4.11).
  • Don’t convey information by colour alone: add text, an icon or an underline (1.4.1).
  • Narrow the window to 320 CSS px: no horizontal scrolling, everything readable (1.4.10).
  • Zoom the text to 200%: nothing is cut off or overlaps (1.4.4).

Dynamic content

  • Announce status messages with role="status" or role="alert" (4.1.3).
  • Don’t let anything flash more than 3 times per second (2.3.1).
  • Make targets at least 24×24 CSS px, or with spacing to neighbouring targets (2.5.8).

Section sources

the section is written from these pages

WCAG: principles, criteria and levels

WCAG (Web Content Accessibility Guidelines) is a W3C standard with testable requirements for the accessibility of web content. It is structured as a tree: 4 principles, 13 guidelines and success criteria at three levels — A, AA and AAA.

Principles and guidelines set the goals, but only the success criteria are testable: it is the criteria that determine WCAG conformance. Each criterion has its own level. The new criteria in WCAG 2.2 were appended to the end of their guidelines so as not to change the existing numbers, so the order of the numbers says nothing about the level.

The criterion number reads from left to right: principle, guideline, criterion.
PrincipleWhat it requiresGuidelines
Perceivableinformation and the interface can be perceived: text alternatives, captions, contrast1.1–1.4
Operablethe interface can be operated: keyboard, enough time, no dangerous flashing, navigation, different input methods2.1–2.5
Understandabletext and how the interface works are understandable: language, predictability, input assistance3.1–3.3
Robustcontent is reliably read by browsers and assistive technologies4.1

Levels A, AA and AAA

A level is met only in full: for level AA, a page meets every level A criterion and every level AA criterion. WCAG 2.2 has 86 criteria in force: 31 at level A, 24 at level AA and 31 at level AAA — the removed 4.1.1 does not count. Which level to choose is a matter of project policy. W3C does not recommend requiring AAA for a whole site: for some content these criteria cannot be met.

Conformance requirements

Conformance with WCAG is determined for a page, and it has five conditions:

  1. The level is met in full — or there is an alternative version of the page that conforms to it.
  2. The complete page: no part of it can be excluded from the assessment, including variants for different screen sizes.
  3. Complete processes: if the page is a step in a checkout, all the steps conform to that level.
  4. Only supported ways: technologies are used in ways that assistive technologies support.
  5. Non-interference: whatever is not counted in the assessment does not interfere with the rest of the page, and criteria 1.4.2, 2.1.2, 2.2.2 and 2.3.1 apply to everything on the page.

What is normative and what is advisory

Only the text of WCAG itself is binding: the principles, guidelines and criteria. The Understanding WCAG 2.2 document (why a criterion exists and how to interpret it) and Techniques for WCAG 2.2 (sufficient and advisory techniques, and common failures) are informative. They explain a criterion and give proven ways to meet it, but add no new requirements. A sufficient technique is one way to satisfy a criterion, not the only one.

What is new in WCAG 2.2

CriterionLevelWhat it requires
2.4.11 Focus Not Obscured (Minimum)AAthe focused element is not entirely hidden by author-supplied content
2.4.12 Focus Not Obscured (Enhanced)AAAauthor-supplied content hides no part of the focused element
2.4.13 Focus AppearanceAAAthe indicator is at least as large as a 2 CSS px perimeter around the element, with 3:1 contrast between states
2.5.7 Dragging MovementsAAany dragging movement can be replaced with a single-pointer action
2.5.8 Target Size (Minimum)AAa target is at least 24×24 CSS px, or has sufficient spacing
3.2.6 Consistent HelpAhelp and contact details appear in the same order relative to other content on every page
3.3.7 Redundant EntryAinformation already entered by the user in the same process is auto-populated or available for the user to choose
3.3.8 Accessible Authentication (Minimum)AAsign-in without a cognitive test, or with the help of a password manager or pasting
3.3.9 Accessible Authentication (Enhanced)AAAthe same, but with no exceptions for object recognition or personal content

The 4.1.1 Parsing criterion has been removed: it appeared when assistive technologies parsed HTML themselves, which they no longer need to do. If a policy requires WCAG 2.0 or 2.1, it may still need to be checked.

How to read a criterion: example 1.4.3

Every criterion has an Understanding page. Here is what to look for on it, using 1.4.3 as an example:

  • “In Brief” — the gist in three lines: the purpose, what to do and why it matters.
  • “Success Criterion” — the normative text: text contrast of at least 4.5:1, or 3:1 for large text; exceptions are disabled elements, purely decorative text and logos.
  • “Intent” — how to read the wording of the criterion: large text means 18 pt, or 14 pt bold, roughly 24 and 18.5 CSS px; the ratio is not rounded, so 4.499:1 fails the threshold.
  • “Techniques” — sufficient techniques (G18: contrast of at least 4.5:1), advisory techniques and failures (F24: text colour set without a background colour).
  • “Key Terms” — definitions: the contrast ratio equals (L1 + 0.05) / (L2 + 0.05), where L1 and L2 are the relative luminance of the lighter and darker colour.

Read the normative text together with the Intent section: it draws the boundaries of the criterion, without which it could be read more broadly or more narrowly than intended.

Section sources

the section is written from these pages

Semantics for assistive technologies

Semantic markup is the use of HTML elements for their intended purpose: button, a, h1–h6, nav, main, table. The browser passes their roles and states to the accessibility tree on its own, and a screen reader user moves through them: by headings, regions, lists and links.

Built-in elements arrive in the accessibility tree with an implicit role: <a href> — link, <button> — button, <input type="checkbox"> — checkbox with the state “checked”, <nav> — navigation, <main> — main, <ul> — list, <h2> — a level 2 heading. A button also receives focus with Tab and is pressed with the Enter and Space keys without a single line of JavaScript. There is no need to repeat the implicit role with a role attribute.

Button or link

A link <a href> leads to another address, a button <button> performs an action on the page: opens a menu, submits a form, toggles the theme. A link with href="#" or href="javascript:void(0)" instead of a button breaks opening in a new tab and bookmarks, and reports the wrong role to the screen reader.

A div with a click handler is worse than both: it has no role, it does not receive focus with Tab and does not respond to Enter and Space. All of this can only be restored by hand — with role="button", tabindex="0" and a key handler. It is simpler and more reliable to use <button>.

htmldon’t do this
<!-- no role, no focus, no keyboard support --><div class="btn" onclick="save()">Save</div>
htmldo this instead
<!-- role, focus and Enter with Space — from the browser --><button type="button" onclick="save()">Save</button>

Headings and regions

Screen reader users skim a page by its headings: they jump to the next one or open the list of all headings as a table of contents. The level therefore reflects structure, not font size: h1 - the topic of the page, h2 - sections, h3 - subsections. Don't skip levels: h4 straight after h2 is confusing. Going back up after closing a subsection is allowed: h2 after h4 — that’s normal.

Landmark regions provide a second means of navigation — across the large parts of the page. The elements header, nav, main, aside and footer become the landmarks banner, navigation, main, complementary and contentinfo. For header and footer this holds only when they are not nested inside article, aside, main, nav or section. If there are several navigation regions, give each one a name with aria-label.

Skipping repeated blocks

Success criterion 2.4.1 requires a way to bypass blocks that repeat on every page: the header and the menu. Place a “Skip to content” link as close to the start of <body> as possible, pointing at main. Not only screen reader users rely on it: for people with switch devices and voice control, every extra step through the menu is hard work.

Language and page title

The language of the page is set with the lang attribute on <html> (3.1.1), and a phrase in another language — with its own lang (3.1.2). Every page must have a <title> that describes its topic or purpose (2.4.2): “Tariffs — Example”, not “Home” on every page.

Data tables

Mark up header cells with <th>, and set the direction with the scope attribute: col — a column header, row — a row header. <caption> is the table’s caption: everyone sees it and the screen reader announces it. The screen reader then associates each cell with its headers and reads out rows and columns as a single whole.

html
<table>  <caption>Bus 12: departures</caption>  <tr>    <th scope="col">Stop</th>    <th scope="col">Time</th>  </tr>  <tr>    <th scope="row">Chilanzar</th>    <td>08:15</td>  </tr></table>

A worked example: page skeleton

This skeleton gives the screen reader everything needed to navigate the page:

html
<!doctype html><html lang="en"><head>  <meta charset="utf-8">  <title>Plans — Example</title></head><body>  <a href="#main" class="skip-link">Skip to content</a>  <header>    <a href="/">Example</a>    <nav aria-label="Main menu">      <ul>        <li><a href="/plans">Plans</a></li>        <li><a href="/help">Help</a></li>      </ul>    </nav>  </header>  <main id="main">    <h1>Plans</h1>    <h2>For teams</h2>    <p>...</p>  </main>  <footer>© 2026 Example</footer></body></html>
ElementRole in the accessibility tree
<header> directly in <body>banner
<nav aria-label="Main menu">navigation with the name “Main menu”
<ul> and <li>list and listitem
<main>main
<h1>, <h2>heading of levels 1 and 2
<footer> directly in <body>contentinfo

Using these roles, the user jumps to regions, headings and links without listening to the whole page. The order in the code matches the order on screen, so the screen reader reads the page in the same sequence a sighted user sees it.

Common mistake: a heading chosen by font size

A heading is chosen for its place in the structure, not for its appearance. If you take h4 “because it is small”, the levels in the screen reader’s outline get muddled; if you make a heading out of a <span> with a large font, there is no heading for the screen reader at all. The level comes from the structure, the size from CSS.

htmldon’t do this
<!-- for the screen reader this is plain text --><span style="font-size: 2em">Plans</span>
htmldo this instead
<!-- level from structure, appearance in CSS --><h2 class="section-title">Plans</h2>

Section sources

the section is written from these pages

ARIA: roles, names and states

WAI-ARIA is the role and aria-* attributes that tell assistive technologies the role, name and state of an element. They add no behaviour, so reach for ARIA only when no suitable HTML element exists: bad ARIA is worse than none.

ARIA is to assistive technologies what CSS is to appearance: it only changes how an element is presented to the screen reader. role="button" on a div is a promise that the author has added the button’s entire keyboard behaviour by hand: the browser will not supply it. If the promise is broken, the screen reader user hears a button that does nothing when pressed.

Roles, states and properties

The role (role) says what kind of element this is. States change as you work with it: whether a disclosure is expanded, whether a button is pressed. Properties describe relationships and permanent characteristics. ARIA never updates anything by itself: your script changes the state on every user action.

AttributeWhat it conveysExample
rolea role the element does not have in HTMLrole="switch" on an <input type="checkbox">
aria-expandedwhether the block it controls is expandeda menu button: "true" or "false"
aria-controlswhich element is controlledaria-controls="site-menu"
aria-pressedwhether a toggle button is pressed<button aria-pressed="false">
aria-currentthe current item in a setaria-current="page" on the link to the open page
aria-hiddenremove an element from the accessibility APIaria-hidden="true" on a decorative icon

Accessible name and description

The accessible name is a short string, usually 1–3 words, that the screen reader calls an element by: “Submit”, “Search”. Every focusable interactive element must have a name, as must dialogs, tables and regions. The accessible description is extra text: a hint, a format, a condition. The screen reader usually announces the name and role, then the state, with the description last.

The browser takes the name from the first source it finds, in this order:

  1. aria-labelledby — the text of the elements it references by id; overrides every other source.
  2. aria-label — a string inside the attribute itself; not visible on screen.
  3. The HTML label: <label> for a field, alt for an image, <legend> for a fieldset, <caption> for a table, <figcaption> for a figure.
  4. Content text — for roles that take their name from content: buttons, links, headings, menu items.
  5. The fallback: title, and for input fields without a title — placeholder. The name from either is usually poor.
On a button and a link, aria-label and aria-labelledby replace their text for the screen reader entirely.

Prefer visible text: the name from it does not diverge from what the user sees, and it is translated together with the interface. Do not put the role into the name: “Close”, not “Close button” — the screen reader announces the role itself.

html
<!-- the name from content: “Save” --><button type="button">Save</button> <!-- an icon-only button: the name from aria-label --><button type="button" aria-label="Close">  <svg aria-hidden="true" viewBox="0 0 16 16">...</svg></button> <!-- the hint is a description, not the name --><label for="pwd">Password</label><input id="pwd" type="password" aria-describedby="pwd-hint"><p id="pwd-hint">At least 12 characters.</p>

Why aria-hidden is not put on focusable elements

aria-hidden="true" removes the element and everything inside it from the accessibility API, but not from the Tab order. The ARIA in HTML specification forbids putting it on focusable elements: you can still reach such a button with Tab, and the screen reader has no sensible way to present it. Use the aria-hidden attribute only to hide things the screen reader does not need: decorative icons, a repetition of nearby text. To hide a block from everyone at once, use the hidden attribute.

Live regions and status messages

A live region is an element whose changes the screen reader announces even when focus is elsewhere. Criterion 4.1.3 is met through it: a status message — the result of an action, a wait, the progress of a process or an error — reaches the screen reader without moving focus.

MarkupWhenHow it is announced
role="status"the result of an action: “18 results found”, “Saved”politely (polite): after the current phrase
role="alert"important and urgent: an error, a warningimmediately (assertive), may interrupt speech
role="log"a stream of messages: a chat, an event logpolitely, as messages are added
aria-live="polite"any block with updates and no role of its ownpolitely, like status
html
<p role="status" id="cart-status"></p>
javascript
const cartStatus = document.getElementById("cart-status");// the screen reader announces new text in a live region by itselfcartStatus.textContent = "3 items in the cart";

Do not turn everything into an alert: an urgent message interrupts the user, and the specification advises assertive only where an interruption is really necessary. A message in a modal dialog does not fall under this criterion: the dialog receives focus, and the screen reader reads it.

ARIA in HTML: what you may put on an element

For every HTML element, the ARIA in HTML specification defines an implicit role and the list of roles and attributes that are allowed; validators rely on it. The main rules:

  • Do not repeat the implicit role: <button role="button"> and <main role="main"> are redundant.
  • Do not override an interactive element with a non-interactive role: <button role="heading"> is forbidden.
  • If an HTML element has a state of its own, ARIA will not override it: on <input type="checkbox" checked> the browser takes checked, not aria-checked.
  • A role does not change the rules of HTML: the parser will move a <div role="link"> inside a <p> out of the paragraph all the same — use a <span>.

APG patterns

The APG (ARIA Authoring Practices Guide) describes the expected behaviour for ARIA roles: which keys, states and properties tabs, menus, modal dialogs and other widgets need. If no ready-made HTML element exists, take an APG pattern instead of inventing your own. The APG examples are written against ARIA 1.2 and do not work around the bugs of browsers and screen readers, so test the result with the screen readers your audience uses.

Worked example: a menu button

On a phone, the menu is hidden behind a button. The screen reader has to name the button and say whether the menu is expanded, and the button has to work from the keyboard. <button> already provides the role, focus and keys; ARIA adds only the state and the link to the menu:

html
<button type="button" id="menu-button"        aria-expanded="false" aria-controls="site-menu">  Menu</button><ul id="site-menu" hidden>  <li><a href="/plans">Plans</a></li>  <li><a href="/help">Help</a></li></ul>
javascript
const button = document.getElementById("menu-button");const menu = document.getElementById("site-menu"); button.addEventListener("click", () => {  const open =    button.getAttribute("aria-expanded") === "true";  // the state for the screen reader and the visibility change together  button.setAttribute("aria-expanded", String(!open));  menu.hidden = open;});

The name “Menu” comes from the button text, the role from <button>, the state from aria-expanded; the screen reader announces them together, for example “Menu, button, collapsed”. A common mistake is to change only the CSS class and forget about aria-expanded: the menu has opened, and the screen reader still says it is collapsed.

Section sources

the section is written from these pages

Keyboard and focus

Everything that works with a mouse has to work from the keyboard as well: that is how blind people, people with motor impairments and programs that drive the page with keyboard commands, such as speech recognition, use it. Focus is always visible and follows a predictable order.

WCAG requirements

CriterionLevelWhat it requires
2.1.1 KeyboardAall functionality is available from the keyboard, with no special timing of key presses
2.1.2 No Keyboard TrapAkeyboard focus can leave any element; a non-standard way out is explained
2.4.3 Focus OrderAfocus moves in an order that preserves the meaning and operability of the page
2.4.7 Focus VisibleAAthe focus indicator is visible
2.4.11 Focus Not Obscured (Minimum)AAthe focused element is not entirely hidden by author content: a sticky header, a banner

Keys by convention

KeyWhat it does
Tab, Shift+Tabthe next or previous element in the tab order
Arrow keysmoving inside a composite widget: a radio group, tabs, a menu, a grid
Enter, Spaceactivate an element or choose an item
Escclose a modal dialog

In a composite widget only one of its elements is part of the tab order: Tab takes you into the widget and out of it, while the arrow keys work inside. A radio group works like that, for example: Tab lands on one of the buttons, and the arrows move between the rest.

The tabindex attribute

ValueWhat it doesWhen it is needed
no attributefocus follows the browser’s defaults: links with href and form elementsalmost always
0the element joins the tab order at its place in the DOMa custom widget that needs focus
-1outside the tab order, but focus can be set from a script with element.focus()a dialog heading, elements inside a composite widget
1 or moreputs the element ahead of everything else in the tab ordernever: it breaks the order

By default, the tab order matches the order of elements in the DOM, and the screen reader reads them in the same order. If the order on the screen is different, rearrange the elements in the DOM instead of fixing it with a positive tabindex.

Composite widgets: roving tabindex and aria-activedescendant

Inside a widget, focus is managed in one of two ways. Roving tabindex: the current element has tabindex="0", the rest have -1; on an arrow key, the script moves the 0 to the next element and calls focus() on it. The second way is aria-activedescendant on the container: DOM focus stays on the container, and the attribute tells the screen reader which element inside is active. The advantage of roving tabindex is that the browser scrolls the page to the focused element by itself.

Modal dialog

A modal dialog makes the rest of the page inert: while the dialog is open, the background cannot be interacted with, and Tab and Shift+Tab do not take focus to the elements behind it. The native <dialog>, opened with the showModal() method, does all of this itself: it moves focus to the first focusable element inside, makes the background inert and closes on Esc.

Returning focus to the opener button is the step most often forgotten.
  1. Focus is on the “Open” button; the user presses Enter or Space.
  2. showModal() opens the dialog: focus moves to the first element inside, and the background becomes inert.
  3. Tab and Shift+Tab do not take focus to the page elements behind the dialog.
  4. Esc or the “Close” button closes the dialog.
  5. Focus returns to the “Open” button the user started from.
html
<button type="button" id="open-filters">  Open filters</button> <dialog id="filters" aria-labelledby="filters-title">  <h2 id="filters-title">Filters</h2>  <!-- filter fields -->  <button type="button" id="close-filters">Close</button></dialog>
javascript
const dialog = document.getElementById("filters");const opener = document.getElementById("open-filters");const closer = document.getElementById("close-filters"); opener.addEventListener("click", () => dialog.showModal());closer.addEventListener("click", () => dialog.close());// the dialog was closed by button or Esc: move focus to the openerdialog.addEventListener("close", () => opener.focus());

If the dialog is not built on <dialog>, all of this is the author’s job: role="dialog", aria-modal="true", a name through aria-labelledby, moving focus inside, keeping Tab in and returning focus. Mark the background with the inert attribute, and set aria-modal only on a dialog that really does block the page for all users.

Focus style

The browser draws the focus indicator itself, and APG recommends relying on it. If you restyle it, do not remove outline without a replacement — that is a F78 failure. Write your own style in the :focus-visible pseudo-class (technique C45): the browser applies it whenever focus needs to be shown, for example when working from the keyboard. The indicator is a non-text element, so its contrast with adjacent colours must be at least 3:1 (success criterion 1.4.11).

csswhat not to do
/* focus disappears entirely */:focus {  outline: none;}
cssthe right way
/* the text colour already contrasts with the background */:focus-visible {  outline: 3px solid currentColor;  outline-offset: 2px;}

Worked example: a keyboard walkthrough

Put the mouse aside and walk the page from the address bar to the footer:

  1. Press Tab: at the start of the page there should be a link that goes straight to the main content (2.4.1).
  2. Keep pressing Tab: focus visits every link, button and field in reading order, and is visible at each one (2.4.3, 2.4.7).
  3. Watch that focus does not disappear under a sticky header or a cookie banner (2.4.11).
  4. Open the menu, the tabs and the lists: inside them the arrow keys, Enter and Space work (2.1.1).
  5. Open a modal dialog: focus is inside, Tab does not reach the elements behind it, Esc closes it, and focus returns to the button (2.4.3).
  6. Make sure you can leave every widget and embedded player from the keyboard — usually Tab or Esc (2.1.2).

Section sources

the section is written from these pages

Accessible forms

An accessible form is one where every field has a visible label tied to it in the code, instructions are given in text, and an error is named next to the field together with how to fix it. Such a form can be filled in with a screen reader, by voice and without a mouse.

A label for every field

Tie <label> to the field with a for attribute equal to the field’s id. The screen reader will then name the field by its label, and clicking the label moves focus into the field — the hit area grows. If the field has no id, nest the field inside the <label>, but assistive technologies support the explicit for link better.

html
<label for="email">Email</label><input id="email" type="email" name="email"       autocomplete="email">

Hide the label visually only if the purpose of the field is obvious anyway, as with a search box next to a “Search” button. Hide it with a class that keeps the text in the accessibility tree, not with display: none or visibility: hidden: then the screen reader will not read it either. The title attribute is unreliable as a label — some assistive technologies do not use it.

Field groups: fieldset and legend

Group related fields in a <fieldset> and put the group heading in a <legend>. Always put a group of radio buttons in a fieldset. Keep the legend short: some screen readers read it before every field in the group.

html
<fieldset>  <legend>Delivery method</legend>  <input type="radio" id="courier"         name="delivery" value="courier">  <label for="courier">Courier</label>  <input type="radio" id="pickup"         name="delivery" value="pickup">  <label for="pickup">Pickup</label></fieldset>

Instructions and required fields

Put general instructions — which fields are required, what date format is expected — before the <form>: inside a form screen readers often switch to forms mode and read only the fields, labels and legend. State the format and whether a field is required right in the label: “Expiry date (MM/YYYY)”, “Phone (required)”. An asterisk or red colour without a text explanation is not enough: colour cannot be the only way to convey information (1.4.1).

Link a hint that does not fit in the label to the field with aria-describedby: the screen reader reads it after the label.

Errors: where and how to report them

Success criterion 3.3.1 requires naming the field in error and describing the error in text, and 3.3.3 — suggesting a fix where one is known. “The email address is wrong” passes 3.3.1, while “Enter your email in the format name@example.com” passes both. How to do it:

  • Put the message next to the field and link it to the field with aria-describedby.
  • Mark the field in error with the aria-invalid="true" attribute (ARIA21 technique).
  • Errors can be listed before the form or next to each field: the criterion does not prescribe the way, it only needs text. If there are several errors, gather them into a list at the top of the form with an anchor link to each field, and after submission move focus to the first field in error.
  • Do not rely on the browser’s built-in validation alone: its messages are generic, do not scale with the page and appear one at a time.
  • A red border supplements the error message but does not replace it (1.4.1).

autocomplete for user data

Success criterion 1.3.5 requires the purpose of fields collecting the user’s own data to be determined programmatically. The list of purposes in WCAG comes from the Autofill section of the HTML specification, and in HTML it is set with the autocomplete attribute: name, given-name, family-name, email, tel, street-address, bday. The browser will fill in the saved details, and assistive technologies can present the field in the form the user is used to.

New in WCAG 2.2: re-entry and sign-in

3.3.7 “Redundant Entry” (level A): information the user has already entered in the same process is filled in automatically or offered for selection — for example a checkbox “The delivery address is the same as the billing address”. Exceptions: the re-entry is genuinely necessary, necessary for security, or the previous information is out of date.

3.3.8 “Accessible Authentication (Minimum)” (level AA): no sign-in step requires a cognitive test — remembering a password, solving a puzzle — without an alternative or help. A password manager and pasting from the clipboard count as help, so do not block pasting into password and code fields and do not get in the way of autofill.

html
<label for="login">Email</label><input id="login" type="email" autocomplete="username"> <label for="password">Password</label><input id="password" type="password"       autocomplete="current-password">

Worked example: an email field with a hint and an error

The field after a failed form submission:

html
<label for="email">Email (required)</label><input id="email" type="email" name="email" required       autocomplete="email" aria-invalid="true"       aria-describedby="email-hint email-error"><p id="email-hint">A receipt will be sent to this address.</p><p id="email-error">Enter an email address in the format name@example.com.</p>

The screen reader announces the name “Email (required)” from the <label>, the role of the text field, the invalid-value flag from aria-invalid and the description — the hint and the error message. A sighted user sees the same thing in text, not only as a red border. Once the error is fixed, remove aria-invalid and the error message.

Section sources

the section is written from these pages

Images, video and animation

Alternative text (alt) conveys the meaning or purpose of an image to those who cannot see it: a screen reader will read it aloud or send it to a braille display. What it should say depends on the role of the image: for an informative one — what it shows, for a link — where it leads, for a decorative one — an empty alt="".

The alt decision tree

Ask the questions in order and stop at the first “yes”:

  1. Does the image contain text? If the same text is nearby or the text is purely decoration — alt="". If it is an icon with a function — describe the function. If the text appears nowhere else — repeat it in alt.
  2. Is the image a link or a button, and without it is it unclear what they do? Describe the action or destination: “Print”, not “Printer”.
  3. Does the image add meaning? For a simple image or photo — a short description of that meaning. For a chart or diagram — the data as text on the page. If it repeats adjacent text — alt="".
  4. Is the image purely decorative? alt="".
  5. If none of the questions fit — the tree does not cover everything: decide by what the image means in its context.
Type of imageWhat to put in altExample
Informativea short description of what matters in this place“A courier handing over an order at the entrance”
Decorativean empty alt=""a border, a background pattern, a mood-setting illustration
Functional (a link, a button)the action or the destination“Print” on a button with a printer icon
Text in the imagethe same text“30% off until 10 November”
Complex (a chart, a diagram)briefly, with the data as adjacent texta table of values under the chart
A group of imagesthe meaning of the whole group on one image, alt="" on the resta five-star rating: “4 out of 5”

Icons and SVG

An icon next to text is usually decorative: hide it from assistive technologies (1.1.1). For an <img> an empty alt="" does this, for an inline <svg> — aria-hidden="true". A button or link made of a single icon is a functional image: its text alternative names the action or destination, such as “Search” on a button with a magnifying glass.

Video and audio

What is neededFor which contentCriterion, level
Captionsrecorded video with sound1.2.2, A
Live captionsa live broadcast with sound1.2.4, AA
Audio description or a text alternativerecorded video where what matters is visible only on screen1.2.3, A
Audio descriptionthe same video1.2.5, AA
Transcriptrecorded audio without video, such as a podcast, and video without sound1.2.1, A

Captions are a synchronised text of the speech and the important sounds. Audio description is a spoken narration of what is visible on screen and needed for understanding. A transcript renders the entire soundtrack and the important visuals as text: people who are both deaf and blind and read braille need exactly that. If a video has no meaningful sound or visuals, say so — for example “[background music]” in the captions — otherwise the user will decide they were forgotten.

Autoplay and motion

If sound on a page plays by itself for longer than 3 seconds, provide a way to stop it or to adjust its volume independently of the system volume (1.4.2). For moving, blinking or scrolling content that starts automatically, lasts longer than 5 seconds and is shown alongside other content, there must be a way to pause, stop or hide it (2.2.2).

Animation and flashing

Nothing on a page may flash more than 3 times per second unless the flashes are below the general and red flash thresholds (2.3.1, level A). This criterion applies to the whole page, including the parts not counted when assessing conformance.

The prefers-reduced-motion media query reports that the user has turned on reduced motion in the system. Scaling and panning large objects causes discomfort to people with vestibular disorders, so when the value is reduce, replace such animations with calm ones or remove them.

css
.card {  transition: transform 300ms ease;}.card:hover {  transform: scale(1.05);} /* the user asks for less motion */@media (prefers-reduced-motion: reduce) {  .card {    transition: none;  }  .card:hover {    transform: none;  }}

Check it on your device: in Windows 11 — “Settings → Accessibility → Visual Effects → Animation Effects”, in macOS — “System Settings → Accessibility → Display → Reduce motion”, in iOS — “Settings → Accessibility → Motion”, in Android — “Settings → Accessibility → Remove animations”.

Worked example: three product images

A headphones page: a product photo, an “add to cart” button made of a single icon and a decorative wave in the header.

html
<!-- informative: what matters to the buyer --><img src="/img/x200.jpg"     alt="X200 headphones, black, folding headband"> <!-- functional: a button made of a single icon --><button type="submit">  <img src="/icons/cart.svg" alt="Add to cart"></button> <!-- decorative: a wave in the header --><img src="/img/wave.svg" alt="">

For the photo, alt describes what is needed to make a choice and is missing from the adjacent text. For the image inside the button, alt names the action, not the “cart” picture. The wave conveys nothing, so its alt is empty.

Typical mistake: “image” and a file name in alt

Do not write alt for the sake of it: “image”, “photo” or IMG_2041.jpg conveys neither the meaning nor the purpose of the picture. If there is no meaning, leave alt empty, but do not remove the attribute: without it the image has no text alternative at all (1.1.1).

Section sources

the section is written from these pages

Colour, contrast and scale

Text against its background needs a contrast of at least 4.5:1, large text at least 3:1, and field borders, icons and the focus indicator at least 3:1. In addition, information is never conveyed by colour alone, and the page works with the text scaled up to 200% and a window 320 CSS px wide.

Text contrast

The contrast ratio is calculated from the relative luminance of two colours: (L1 + 0.05) / (L2 + 0.05), where L1 is the luminance of the lighter colour. It ranges from 1:1 (identical colours) to 21:1 (black on white). Hue makes almost no difference: what matters is the difference in luminance.

WhatMinimum contrast (1.4.3, AA)
Ordinary text4.5:1
Large text: from 18 pt (about 24 CSS px), or from 14 pt (about 18.5 CSS px) in bold3:1
Placeholder, hover and focus textthe same 4.5:1 or 3:1, depending on size
Disabled elements, decorative text and logosno requirements

Contrast of interface elements and graphics

Anything without which you cannot spot a control or understand its state must have a contrast of at least 3:1 against adjacent colours (1.4.11): the border of a text field with no background, an icon button, the tick in a checkbox, the focus indicator. The same applies to the parts of a chart without which it cannot be understood. A border is not required if the element is already identifiable from its text, but a focus indicator is always needed.

Examples from Understanding 1.4.11: a grey field border of #767676 on white passes, while a yellow focus indicator of #FFFF00 outside a button on a white background does not.

Not colour alone

Colour cannot be the only means of conveying information, indicating an action or highlighting an element (1.4.1). A red field border complements the error message rather than replacing it; chart lines are also distinguished by a label or a marker. Distinguish in-text links with an underline or a contrast of at least 3:1 against the surrounding text (technique G183).

css
/* links in text are visible not only through colour */.article a {  color: #0b57d0;  text-decoration: underline;}

Scaling and reflow

Text must scale up to 200% without loss of content or functionality (1.4.4). At a width of 320 CSS px — a window of 1280 CSS px at 400% zoom — the content reflows and can be read without scrolling in two dimensions (1.4.10). The exception is content that needs a two-dimensional layout: maps, diagrams, videos, games, data tables.

How to check: in a window 1280 px wide, set the browser zoom to 400% and go through the page. Everything is visible, nothing is cut off or overlapping, and scrolling is vertical only.

Dark theme

The thresholds do not depend on the theme: the ratio is calculated from the colours the user sees. A colour that passes on white can fail on a dark background: grey #767676 gives 4.54:1 on white #FFFFFF but only 4.12:1 on #121212. Check each theme separately.

How to measure

In Chrome DevTools, point the “Inspect” tool at text: the tooltip shows the contrast ratio and a warning if it is too low. In the “Color Picker” for the color property, the “Contrast ratio” section shows whether the colour passes the AA and AAA levels and suggests a suitable colour. The “CSS Overview” and “Issues” panels, as well as the Lighthouse report, list every contrast problem on the page.

Worked example: a grey caption on white

The caption under a product card is set in 14 px #999999 on white. Let’s calculate:

  1. The relative luminance of #999999 is about 0.319, that of white is 1.
  2. The ratio: (1 + 0.05) / (0.319 + 0.05) ≈ 2.85:1.
  3. Text of 14 px is not large, so 4.5:1 is needed — the caption fails.
  4. Darken it: #767676 gives 4.54:1 and passes, while the adjacent #777777 gives 4.48:1 and already fails.
css
.card-caption {  /* was #999999 — 2.85:1, fails */  /* #767676 — 4.54:1, passes AA */  color: #767676;}

Section sources

the section is written from these pages

Testing accessibility

Accessibility is checked on two layers: an automated tool quickly finds some of the problems, while the rest is only visible to a human — with a keyboard, a screen reader and zooming. No tool on its own can tell whether a site is accessible.

Check from the very start of development and at every stage, not only before release: a problem caught early is easier and cheaper to fix. The order of checks:

  1. Automated check: Lighthouse, axe or WAVE find missing alt, fields without a label, low contrast and ARIA attribute errors.
  2. Keyboard: go through the page with the Tab, Shift+Tab, Enter, Space and Esc keys.
  3. Screen reader: listen to the headings, landmarks, links, forms and messages.
  4. Zoom and contrast: enlarge the text, narrow the window, measure contrast with a tool; thresholds are in the section “Colour, contrast and zoom”.
  5. Report: for every problem — where it is, what is wrong, the criterion number and level, and how to fix it.
Automation finds only some of the problems: its result is the start of the check, not the conclusion.

What automated tools can find

Checking tools come as browser extensions, command-line programs and online services, and they are built into CI. They quickly find what is visible from the code: a missing alt, a field without a label, low contrast, incorrect ARIA attributes. But they cannot decide whether an alt makes sense, whether the focus order is logical, whether a form can be filled in with a screen reader, and sometimes they get things wrong.

Choose a tool to suit the task: one page or a whole site, an automated check or help with a manual one, support for WCAG and the ACT rules. W3C WAI maintains a list of more than 100 tools with filters.

Lighthouse accessibility scoring

The Lighthouse score is a weighted average of automated checks, with weights taken from the axe impact assessment. Each check either passes or fails: if some buttons have no name, the “Buttons have an accessible name” check scores 0 as a whole. Manual checks do not affect the score, so 100 points do not mean the page is accessible. There are more than fifty checks in all; the table shows the heaviest ones.

Lighthouse checkWeight
Image elements have [alt] attributes10
Form elements have associated labels10
Buttons have an accessible name10
[aria-*] attributes have valid values10
Background and foreground colors have a sufficient contrast ratio7
Document has a <title> element7
<html> element has a [lang] attribute7
No element has a [tabindex] value greater than 07

Checking with a screen reader

The screen reader is the main manual check: it is the only thing that shows what a blind user actually receives. On Windows there is the free NVDA and the paid JAWS; macOS and iOS have the built-in VoiceOver, and Android has TalkBack. Turn on the screen reader and complete the page’s main task without looking at the screen.

TaskNVDA (Windows)VoiceOver (macOS)
Turn onCtrl+Alt+NCmd+F5
Turn offNVDA+QCmd+F5 again
Next or previous elementdown or up arrowVO+right or left arrow
Next headingH, previous — Shift+H, level — digits 1–6VO+U: lists in the Rotor
Links, buttons, fieldsK, B, FVO+U, then change the list with the left and right arrows
LandmarksD, previous — Shift+DVO+U: lists in the Rotor
Activate an elementEnterVO+Space
TableCtrl+Alt+arrows — cell by cellVO+C — column header, VO+R — rows

In the table, NVDA is the NVDA modifier key: Insert by default, CapsLock as an option. VO is the VoiceOver modifier: Ctrl+Option or CapsLock. Before your first check, go through the built-in VoiceOver training: it opens when VoiceOver is first switched on.

WCAG-EM and the ACT rules

For a formal conformance assessment — before releasing a product, for procurement or regular monitoring — W3C offers the WCAG-EM methodology (revision 2.0 covers not only websites but also apps and other digital products). It goes in five steps: define the scope and the target level, explore the product, select a representative sample of screens and functions, assess it and compile a report. WCAG-EM adds no requirements to WCAG and is not tied to specific tools, and the WCAG-EM Report Tool helps put the report together.

The ACT rules (Accessibility Conformance Testing) describe how to test conformance to WCAG and WAI-ARIA: with automated, semi-automated and manual checks. They are written and applied primarily by tool and methodology developers, but the rules are open: a tester can see from them why a tool deems a case passed, and identical cases are decided identically.

Worked example: a sign-in form

A form with email and password fields and “Show password” and “Log in” buttons — the check steps:

  1. Lighthouse: the fields have labels, the “Log in” button has a name, contrast is sufficient.
  2. Keyboard: Tab goes email → password → “Show password” → “Log in”, the focus indicator is visible at every step.
  3. Pasting: the password can be pasted from the clipboard, a password manager fills in the fields (3.3.8).
  4. Screen reader: on a field you hear its name and role, and after an error — the error message, not just a flag for an invalid value.
  5. Zoom: at 200% and a width of 320 CSS px the labels are not cut off, the button is visible.
  6. Report: “Password field: the error message is not associated with the field — 3.3.1, level A; associate it via aria-describedby”.

Section sources

the section is written from these pages

Common mistakes in approach

Most accessibility problems come down to a handful of recurring solutions: a div instead of a button, an image without alt, a field without a label, a removed focus indicator, needless ARIA, information conveyed by colour alone. Each of them is visible in the code and has a standard fix.

A clickable div instead of a button or a link

<div onclick> receives no focus on Tab, cannot be pressed from the keyboard and does not announce its role to the screen reader. Adding role="button" is not enough: a role is a promise of behaviour, and you still have to write the key handling and focus management yourself. A link made out of a div or a span with a click handler is an F42 failure.

The right way: an action on the page is a <button>, a transition to an address is an <a href>.

htmlwhat not to do
<div onclick="location.href='/plans'">Plans</div>
htmlthe right way
<a href="/plans">Plans</a>

An image without alt, or with meaningless alt

Without a text alternative, assistive technologies can neither identify the image nor convey its purpose. Some screen readers read out the file name instead, something like images/nav01.gif, but a file name rarely explains anything. This is an F65 failure of success criterion 1.1.1.

The right way: describe in alt what the image means in its context.

htmlwhat not to do
<img src="/img/x200.jpg">
htmlthe right way
<img src="/img/x200.jpg" alt="X200 headphones, black">

A field without an associated label

If a label sits next to the field but is not associated with it in the code, assistive technology cannot tell which label belongs to which field, and the user is left guessing what the field is for. This is an F68 failure of success criterion 4.1.2. A placeholder does not serve as a label: it disappears as soon as you start typing, and not every field has one.

The right way: a <label for> with the field’s id; if there is no visible label — aria-label or aria-labelledby.

htmlwhat not to do
<span>Phone</span><input type="tel">
htmlthe right way
<label for="phone">Phone</label><input id="phone" type="tel" autocomplete="tel">

An outline removed with nothing in its place

The rule :focus { outline: none } switches off the focus indicator, and a keyboard user can no longer see where the focus is. This is an F78 failure of three criteria at once: 1.4.11, 2.4.7 and 2.4.13. The same failure is giving every link an outline that resembles the focus outline: the focused one becomes impossible to pick out.

The right way: keep the browser’s focus indicator or replace it with your own noticeable one.

css
/* your own indicator instead of the standard one */:focus-visible {  outline: 3px solid currentColor;  outline-offset: 2px;}

Needless ARIA on top of correct markup

ARIA changes how an element is perceived by assistive technologies, but not its behaviour. To the screen reader, <a role="menuitem"> is no longer a link and <ul role="navigation"> is no longer a list, while aria-label on a link replaces its visible text. Bad ARIA is worse than no ARIA at all.

The right way: start from a suitable HTML element; reach for ARIA only to add what HTML does not provide, for example aria-pressed on a toggle button. Do not put aria-hidden on anything focusable: the element drops out of the accessibility API but stays in the Tab order (see the section “ARIA: roles, names and states”).

htmlwhat not to do
<ul role="navigation">  <li><a href="/plans">Plans</a></li></ul>
htmlthe right way
<nav aria-label="Main menu">  <ul>    <li><a href="/plans">Plans</a></li>  </ul></nav>

Information conveyed by colour alone

Required fields marked in red alone will be missed by people with colour vision deficiency. The same applies to error messages, statuses and chart lines that differ only in colour.

The right way: add text or a symbol alongside the colour, such as an asterisk with a note saying it marks a required field.

Action on hover only

mouseover and mouseout handlers never fire from the keyboard: a tooltip or an enlarged photo that appears on hover is out of reach without a mouse.

The right way: duplicate them with focus and blur events and make the element focusable. For links and buttons, the browser also fires click on Enter.

javascript
// the element needs tabindex="0" if it is not focusable on its ownthumb.addEventListener("mouseover", showZoom);thumb.addEventListener("mouseout", hideZoom);// the same from the keyboardthumb.addEventListener("focus", showZoom);thumb.addEventListener("blur", hideZoom);

Checking with an automated tool only

A tool finds only some of the problems: a missing alt, a field without a label, low contrast. It will not decide whether an alt makes sense, whether the focus order is sensible or whether a widget works from the keyboard. Even a Lighthouse score of 100 does not mean the page is accessible. The list of checks is in the section “Testing accessibility”.

Hiding text with display: none

display: none and visibility: hidden hide text from screen readers too. If you hide a label or a hint that only screen reader users need this way, it disappears for everyone.

The right way: hide text meant only for assistive technologies with absolute positioning, and keep display: none for what should be hidden from everyone.

css
/* the text is in the accessibility tree but not on screen */.visually-hidden {  position: absolute;  width: 1px;  height: 1px;  overflow: hidden;  clip-path: inset(50%);  white-space: nowrap;}

Section sources

the section is written from these pages

Standards and their status

Web accessibility is currently defined by WCAG 2.2 — a W3C Recommendation, the updated edition of 12 December 2024 — and WAI-ARIA 1.2, a Recommendation of 6 June 2023. WCAG 3.0 is still a Working Draft and is not a requirement.

DocumentWhat it definesStatusSuperseded or extended by
WCAG 2.2success criteria for web content, levels A, AA and AAARecommendation: 5 October 2023, updated 12 December 2024extends WCAG 2.1: 9 new success criteria, 4.1.1 removed
WCAG 2.1one more guideline and 17 more success criteria than 2.0Recommendation: 5 June 2018, with updates through 6 May 2025extended by WCAG 2.2, but not deprecated
WCAG 2.012 guidelines — the foundation of WCAG 2Recommendation: 11 December 2008extended by 2.1 and 2.2, but not deprecated
WCAG 3.0a new model of requirements and conformance assessmentWorking Draft: 10 September 2026will succeed WCAG 2, but will not replace it
WAI-ARIA 1.2roles, states and properties for assistive technologiesRecommendation: 6 June 2023extends ARIA 1.1; 1.3 in preparation
WAI-ARIA 1.3the new roles suggestion, comment, mark, and the attributes aria-description, aria-braillelabel and aria-brailleroledescriptiondraft in development—
ARIA in HTMLwhich roles and aria-* attributes may be used on each HTML elementa Recommendation since 9 December 2021; the current edition is 11 August 2026—
Accessible Name and Description Computation 1.2how the browser computes the accessible name and descriptionWorking Draft: 4 November 2026—
HTML Accessibility API Mappings 1.0how HTML elements and attributes map to the accessibility APIWorking Draft: 26 October 2026—
ACT Rules Format 1.1the format of rules for testing conformance with WCAGRecommendation: 5 February 2026—
ISO/IEC 40500:2025WCAG 2.2 as an ISO standardapproved; identical to the October 2023 edition of WCAG 2.2the December 2024 edition is expected as ISO/IEC 40500:2026
EN 301 549European ICT accessibility requirementsthe 2026 edition builds on WCAG 2.2—

For the European Accessibility Act, organisations usually apply WCAG and EN 301 549; W3C collects the national laws that use WCAG on the Web Accessibility Laws & Policies page.

What has changed in recent editions

  • WCAG 2.2: 9 new success criteria — 2.4.11–2.4.13 on focus, 2.5.7 and 2.5.8 on dragging and target size, 3.2.6 on accessible help, 3.3.7–3.3.9 on repeated input and authentication; success criterion 4.1.1 “Parsing” has been removed.
  • WCAG 2.2: the updated edition came out on 12 December 2024; ISO/IEC 40500:2025 matches the previous, October 2023 edition.
  • ARIA in HTML: the last substantive changes were in 2025 (summary, label, the new selectedcontent element and button inside a customisable select); the current edition is 11 August 2026.
  • EN 301 549: the 2026 edition builds on WCAG 2.2.
  • WCAG 3.0: the draft of 10 September 2026 includes only requirements with “developing” status and an updated conformance model.

Outdated documents still cited

WCAG 2.0 and 2.1 remain current Recommendations: WCAG 2.2 does not deprecate them. The versions are backwards compatible: a page that conforms to WCAG 2.2 also conforms to 2.1 and 2.0, so W3C advises targeting 2.2. For the removed success criterion 4.1.1, notes have been added to the errata lists of WCAG 2.0 and 2.1.

WCAG 3.0 is neither a replacement nor a requirement: W3C states outright that WCAG 3 does not supersede WCAG 2. Content that conforms to WCAG 2.2 at levels A and AA is expected by W3C to cover most, though not all, of the minimum level of WCAG 3. The draft is still changing, and several years of work lie ahead before it becomes a standard.

Section sources

the section is written from these pages

End of the reference

What changed

revision history · 3 entries

Every edit is saved as a revision: a snapshot of the reference, the reason and a summary of changes. The published version changes only after the same checks as at creation.

  1. Manual edit

    reason: manual edit
  2. Manual edit

    reason: manual edit
  3. Reference updated

Weekly check

How the reference is checked

Once a week — and right after news of a release or a vulnerability — the reference is checked in three steps.

  1. 1. Freshness

    Sections are compared with the release notes and changelogs from the official sources and with the topic’s news.

  2. 2. Errors

    Every section is read again: wrong facts, outdated APIs and flags, broken examples.

  3. 3. Links — by an HTTP request

    Every source link must respond. A broken link is a reason to recheck the section.

No findings — only the date changes. Findings — only the affected sections are rewritten, and they appear in “What changed”. A new version replaces the published one only after passing the same checks as at creation.

Statuses

Verified
no findings
Updated
sections rewritten, edits are listed
Rechecking
while the check runs, the previous version stays open
Needs review
disputed points: the verified version is shown, editors review

Last check

18 Nov · Check · updated · no findings

Found an error in the reference?

On the topic

tracks, news and other references
The whole “Accessibility (a11y)” topic
13 sections
Another reference · Backend

HTTP and REST

Verified 1 Nov
All references · 61