Accessible Name for ARIA Meter Elements
Rule ID: aria-meter-name
Ruleset: axe-core 4.10
User Impact: Serious
Guidelines: WCAG 2.1 (A), WCAG 2.0 (A), WCAG 2.2 (A), EN 301 549
How to Fix the Problem
To ensure compliance and accessibility for users of assistive technologies, each element with role="meter"
must be given a clear and accessible name. This can be achieved through one of the following methods:
Valid Markup Patterns:
-
Using
aria-labelledby
: -
Using
aria-label
: -
Using
title
attribute:
These solutions provide accessible text for screen reader users, making the meter element’s purpose clear.
Avoid the Following Common Mistakes:
-
Missing all naming attributes:
-
Empty
aria-label
: -
aria-labelledby
pointing to non-existent elements: -
aria-labelledby
pointing to empty elements:
Always make sure that the referenced elements exist and contain meaningful, visible text.
Why it Matters
Users who rely on screen readers need meaningful descriptions to understand the function and context of interactive elements. Without an accessible name, the role="meter"
element becomes invisible to these users or is announced ambiguously, leading to confusion or misinterpretation.
By properly labeling these elements, you ensure that all users—including those with visual impairments—can accurately perceive the information conveyed by meter elements, such as download progress, usage quotas, or system load.
Rule Description
Every element with role="meter"
must have an accessible name. This name should clearly describe its function or purpose so screen reader users can understand what the meter represents.
The Algorithm (in simple terms)
-
Find all elements with
role="meter"
. -
Check if each has:
-
A non-empty
aria-label
, or -
An
aria-labelledby
pointing to an existing element with visible text, or -
A
title
attribute with meaningful content.
-
-
If none of the above are present or valid, the rule fails.