HTML aria-valuetext ARIA Attribute
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.
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
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.
Desktop





Tablets & Mobile





