Ensures Every ARIA Meter Node Has an Accessible Name

Photo of Researcher
Yotam Flohr
Researcher
Blind Low vision Mobility
WCAG 2.1 Level A

Written and researched for humans by humans

Photo of Researcher
Yotam Flohr
Researcher
Photo of Expert
Ritvik Shrivastava
Expertly reviewed by
Comments: 0
Your entire domain
Get detailed instructions on how to resolve every accessibility issue on your website

Web accessibility requirements state that Aria meter elements must have discernible text that clearly describes the destination, purpose, function, or action for screen reader users.

Why It Matters

When elements with a role=”meter” attribute do not have an accessible name, screen readers are unable to relay their purpose to users.

Fixing the Issue

Developers should check that all elements with role=”meter” have a discernible and accessible name.

Good Code Example

The aria-meter-name rule has three markup patterns that pass test criteria:

Code example
<div role="meter" id="alb" aria-labelledby="labeldiv"></div><div role="meter" id="combo" aria-label="Aria Name">Name</div><div role="meter" id="title" title="Title"></div> Copy

Bad Code Example

The aria-meter-name rule has four markup patterns that fail testing criteria:

Code example
<div role="meter" id="empty"></div><div role="meter" id="alempty" aria-label=""></div><div role="meter" id="albmissing" aria-labelledby="nonexistent"></div><div role="meter" id="albempty" aria-labelledby="emptydiv"></div> <div id="emptydiv"></div> Copy