liveBook · Manning

Accessibility tree

As explained in Architecting Accessibility

An accessibility tree is a browser-maintained representation of interface elements and their accessibility roles, states, properties, and relationships exposed to assistive technologies.

For someone navigating with assistive technology, visual appearance alone cannot convey a page’s structure or controls. Browsers derive an accessibility tree from the DOM, preserving information important for understanding and interaction while leaving out purely decorative details. section 2.5.3

The tree can expose an element’s role, current state, accessible name, and relationships, as well as headings and landmarks. This information reaches assistive technologies; semantic HTML helps browsers represent the page meaningfully. ARIA can add semantics to custom components, but does not replace correct structure or keyboard behavior. section 2.5.3 section 2.6

Figure 2.7 After receiving a response from a server, the browser builds several internal representations of any web page, including a Document Object Model (DOM) tree, a layout and rendering structure, and an accessibility tree. The accessibility tree exists specifically for assistive technologies. It is derived from the DOM, but consists only of essential elements that matter for understanding and interaction, stripping away decorative elements and purely visual details that don’t convey meaningful content, structure, or functionality.

See how the browser’s accessibility tree keeps meaningful interface information while omitting decorative presentation. section 2.5.3

How Architecting Accessibility covers it

How deep it goes
Defines the tree’s relationship to the DOM and its roles, states, names, and relationships, without detailing browser internals.
Examples
Uses a checked checkbox, help-text relationship, labeled button, headings, landmarks, and an omitted decorative background.
What you can do after
Understand how browsers convey meaningful page structure and control information to assistive technologies.
How it connects
Connects the DOM and semantic HTML to ARIA, screen readers, and assistive technologies.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Architecting Accessibility. The section links point to the parts of the book it draws on.