Logo

What are you looking for?

Get help straight from our team...

Label ARIA treeitem elements descriptively

Accessibility Tips

Label ARIA treeitem elements descriptively

Provide informative accessible names for ARIA treeitem elements to help screen readers properly announce their content and role within the tree structure.

Last updated on 11 Nov, 2025

***This document provides helpful tips to improve your site's accessibility. While it doesn’t guarantee 100% compliance, it’s a great starting point to make your website more inclusive and user-friendly.***

Identification

ARIA treeitem nodes must have an accessible name (Rule ID: aria-treeitem-name)

 

Applicable Standards

  • Deque Best Practice

 

Impact

Serious level impact affecting:

  • Blind users

  • Low vision users

  • Users with mobility impairments

 

Proper Implementation

Treeitem elements must have an accessible name using one of:

  • Inner text content

  • aria-label attribute

  • aria-labelledby reference

  • title attribute

  • Text must be discernible to screen readers

 

Examples of Correct Usage

  1. Using Inner Text for Accessible Names:
    Accessible names are provided using inner text (Folder 1, Folder 2), allowing screen readers to announce the tree items correctly.

Image
  1. Using aria-label for Custom Labels:
    The aria-label attribute provides accessible names (Documents Folder, Images Folder) for tree items with no visible text.

Image
  1. Using aria-labelledby to Reference a Label:
    The aria-labelledby attribute references external elements (folder1-label, folder2-label), providing accessible names for screen readers.

Image
  1. Using the title Attribute for Tooltip-Like Names:
    The title attribute provides additional accessible names (Archive Folder, Backup Folder) that are announced by screen readers.

Image
  1. Combining Visual and Hidden Accessible Names:
    A visually hidden label (Hidden Folder) is combined with visible text (Visible Folder) using aria-labelledby, ensuring screen reader users get detailed information.

Image

Common Errors to Avoid

  1. Missing Accessible Name:
    Tree items lack accessible names, resulting in screen readers announcing them as "blank" or "unlabeled."

Image
  1. Using Non-Descriptive Names:
    Non-descriptive labels like "Item 1" and "Item 2" fail to convey meaningful information about the tree items.

Image
  1. Duplicate Accessible Names:
    Duplicate labels (Folder) confuse users navigating through the tree, as they cannot distinguish between the items.

Image
  1. Over reliance on Visual Content Without Labels:
    The alt text (Folder) is too generic, and no accessible name is provided for the tree items, making them indistinguishable.

Image
  1. Using ARIA Roles Incorrectly:
    The second item lacks the role="treeitem" attribute, making it inaccessible to screen readers as part of the tree structure.

Image

 

Rationale

  • Essential for screen reader users to navigate tree structures

  • Ensures tree items are identifiable and meaningful

  • Enables proper hierarchical navigation

  • Critical for file system-like interfaces

 

Evaluation Method

  1. Inspect the Code

    • Verify that:

      • Each treeitem has an accessible name provided by inner text, aria-label, aria-labelledby, or title.

      • Accessible names are meaningful and descriptive.

      • No duplicate names exist unless intentionally part of the design.

  2. Test with Assistive Technology

    • Use a screen reader (e.g., NVDA, JAWS, or VoiceOver) to confirm:

      • Tree items are announced clearly with their role and accessible names.

      • Navigation through the tree structure is logical and intuitive.

Evaluation Checklist

Image
Did you find this article helpful?
Previous

Implement effective page navigation aids

Next