Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / HTML

DevTools: DOM, computed styles, and the accessibility tree

Learn three complementary Chrome DevTools views: Elements shows the DOM, Computed explains resolved CSS values, and the accessibility tree lets you inspect semantics exposed to assistive technology.

Version: Desktop Chrome DevTools: this workflow applies to releases that expose the Computed and Accessibility tabs in Elements and the full accessibility tree toggle. The linked documentation does not establish a minimum Chrome version for the complete workflow.

Syntax

Elements → select DOM node → Computed | Accessibility → accessibility tree / Computed Properties

The label DevTools Elements / Computed / Accessibility tree connects three views, not a single HTML feature. The Elements panel lets you inspect and edit the current DOM. Select the node corresponding to the element being investigated; this is the starting point for checking its appearance and semantics.

The Computed tab presents resolved CSS properties for the selected element. Filter by a property name such as color, and expand the property to investigate declarations contributing to its value. Styles helps analyze rules and the cascade; a declaration's presence in a rule does not mean it determines the result.

The Accessibility tab contains ARIA attributes and Computed Properties, meaning computed accessibility properties, not CSS. The accessibility tree is derived from the DOM and represents semantics such as an element's role and name; it is not a copy of the markup tree. The tree-view toggle lets you compare corresponding DOM and accessibility nodes.

In the example, select #save: expect color: rgb(0, 0, 128) in Computed, and role button with name Save in Accessibility. These are expected observations for local verification. Inspection does not establish full accessibility: test the page separately with a keyboard and screen reader.

Examples

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Inspection demo</title>
  <style>
    #save { color: rgb(0, 0, 128); }
  </style>
</head>
<body>
  <button id="save" type="button">Save</button>
</body>
</html>

Result

Visible text: Save
#save — Computed CSS: color: rgb(0, 0, 128)
#save — Accessibility: role: button; name: Save

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources