🧩 Fix a Meter Element Missing an Accessible Label
The <meter> element renders a visual gauge automatically, but unlike <progress> it has no implicit text content a screen reader can fall back on describing — without an explicit aria-label, a visible <label> association, or an aria-labelledby reference, assistive technology announces only the raw numeric value with no indication of what’s actually being measured.
🔎 The Problem
<p>Disk usage:</p>
<meter value="0.7" min="0" max="1"></meter>
<!-- Screen reader announces: "70 percent"
with no connection to the "Disk usage" text above it -->
✅ Fix: Give the Meter an Explicit, Programmatic Label
- Wrap the meter in a
<label>element (or usefor/idassociation) so assistive technology reads the label text together with the value as one coherent announcement. - Where a visible label isn’t part of the design, add
aria-label="Disk usage"directly on the<meter>so the accessible name exists even without visible text nearby. - Test with an actual screen reader rather than only checking the visual gauge renders correctly — the meter’s rendered appearance gives no indication of whether its accessible name is present at all.
A meter can show the number perfectly and still tell a screen reader user nothing about what that number means.




