Favorites

HTML aria-valuetext ARIA Attribute

aria-valuetext
ARIA AttributeThis ARIA attribute is supported by all modern browsers.
Updated 28th November 2026

The aria-valuetext attribute gives a readable version of a range widget's current value, such as Medium or 3 of 5 stars, when the number alone isn't meaningful.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

Description

The aria-valuetext attribute provides a human-readable text for the current value of a range widget. When it is present, screen readers announce it instead of the number in aria-valuenow. For example, a slider with values 1 to 3 can be announced as "Small", "Medium" and "Large", and a price slider as "$250" rather than "250".

Keep aria-valuenow as well, since it still holds the numeric value, and update both together. Only add aria-valuetext when the number would be unclear on its own, since screen readers otherwise announce the number in a familiar way.

Properties

Type
Widget
Value
string
Default
None
Used with
meter, progressbar, scrollbar, separator, slider, spinbutton

Syntax

<element role="slider" aria-valuenow="2" aria-valuetext="text">

Values

  • textThe text to announce for the current value.

Example

<label for="size">Size</label>
<input id="size" type="range" min="1" max="3" value="2" aria-valuetext="Medium"
oninput="this.setAttribute('aria-valuetext',['Small','Medium','Large'][this.value-1]);document.getElementById('out').textContent=this.getAttribute('aria-valuetext');">
<output id="out">Medium</output>

Browser Support

The following information will show you the current browser support for the aria-valuetext ARIA attribute. Hover over a browser icon to see the version that first introduced support for this ARIA attribute.

This ARIA attribute is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee