Redaguoti

Bendrinti naudojant


Test accessibility using the Accessibility tab

The Accessibility tab is where you view the accessibility tree, ARIA attributes, and computed accessibility properties of DOM nodes.

To open the Accessibility tab:

  1. In a rendered webpage, right-click an element and then select Inspect.

    DevTools opens, with the Elements tool selected. The DOM tree opens to show the element that you right-clicked.

  2. In the DOM Tree, click the element that you want to inspect. You can use the arrow keys to move through the DOM tree.

  3. Click the Accessibility tab, to the right of the Styles tab. You might need to first click the More tabs (the More tabs button) button to the right of the Styles tab.

The Accessibility tab, in the Elements tool sidebar panel

View the position of an element in the accessibility tree

The accessibility tree is a subset of the DOM tree. The accessibility tree only contains elements from the DOM tree that are relevant and useful for displaying the contents of a page through assistive technologies such as screen readers.

Inspect the position of an element in the accessibility tree from the Accessibility tab.

The Accessibility Tree section

View the ARIA attributes of an element

ARIA attributes ensure that assistive technologies such as screen readers have all of the information that they need in order to properly represent the contents of a page.

View the ARIA attributes of an element in the Accessibility tab.

The ARIA Attributes section

View the computed accessibility properties of an element

Some accessibility properties are dynamically calculated by the browser. These properties are displayed in the Computed Properties section of the Accessibility tab.

View the computed accessibility properties of an element in the Accessibility tab.

The 'Computed Properties' section of the Accessibility tab

Computed accessibility properties are different than computed CSS properties. To learn more about how to view computed CSS properties, see View only the CSS that is actually applied to an element in CSS features reference.

Note

Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons Attribution 4.0 International License. The original page is found here and is authored by Kayce Basques.

Creative Commons License This work is licensed under a Creative Commons Attribution 4.0 International License.