Skip to main content
Perceivly: Perceivly home

Accessibility tree

The tree of accessible objects, with roles, names and states, that the browser builds from the page and exposes to assistive technology.

Definition

WAI-ARIA defines the accessibility tree as a tree of accessible objects that represents the structure of the user interface. Each node represents an element in the UI as exposed through the accessibility API, for example a push button, a check box or a container.

The browser builds it from the DOM. Native HTML semantics and ARIA attributes decide each node's role, accessible name, description and state. Elements hidden with display: none, hidden or aria-hidden="true" are left out.

Why it matters

Screen readers, voice control and switch software read the accessibility tree, not the pixels. If a custom checkbox looks checked but its node has no checked state, those users cannot tell. Most of 4.1.2 Name, Role, Value and 1.3.1 Info and Relationships is about what ends up in this tree.

How to test or meet it

Open the accessibility panel in your browser's developer tools (Chrome, Edge and Firefox each have one) and select an element to see its computed role, name and states. Chrome can also show the full tree in place of the DOM tree.

Check that interactive elements have the right role and a sensible name, that state changes (expanded, selected, checked) update, and that decorative or off-screen content is not exposed. Then confirm with a screen reader, since each one presents the tree in its own way.

WCAG criteria

Sources

  1. WAI-ARIA 1.2: accessibility tree (W3C)
  2. Accessible Rich Internet Applications (WAI-ARIA) 1.2 (W3C)

By the Perceivly team · Published . This explains a term; it is not legal advice.

Check a page for free

The free accessibility checker tests one page against WCAG 2.2 A and AA in about 10 seconds and lists what still needs a manual review. No sign-up.

All glossary terms