Favorites

HTML aria-valuenow ARIA Attribute

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

The aria-valuenow attribute gives the current value of a range widget, such as the position of a slider or the progress of a progress bar.

☕
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-valuenow attribute defines the current value of a range widget. It is required on slider, scrollbar and focusable separator elements, and used on spinbutton, progressbar and meter. Screen readers announce it, often as a percentage of the range set by aria-valuemin and aria-valuemax.

Update it with JavaScript every time the value changes. If the number on its own isn't meaningful, such as a day of the week stored as 1 to 7, add aria-valuetext with a readable version.

For a progress bar whose progress is unknown, leave aria-valuenow out: that tells users the task is in progress without a known percentage.

Properties

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

Syntax

<element role="slider" aria-valuenow="number">

Values

  • numberThe current value, between the minimum and maximum.

Example

<div id="vol-lbl">Volume</div>
<div role="slider" tabindex="0" id="vol" aria-labelledby="vol-lbl"
aria-valuemin="0" aria-valuemax="10" aria-valuenow="5"
style="width:200px;height:8px;background:#ddd;position:relative">
<div id="thumb" style="position:absolute;left:50%;top:-4px;width:16px;height:16px;border-radius:50%;background:#2563eb"></div>
</div>
<script>
var s = document.getElementById('vol');
s.addEventListener('keydown', function (e) {
var v = +s.getAttribute('aria-valuenow');
if (e.key === 'ArrowRight' || e.key === 'ArrowUp') v = Math.min(10, v + 1);
else if (e.key === 'ArrowLeft' || e.key === 'ArrowDown') v = Math.max(0, v - 1);
else return;
e.preventDefault();
s.setAttribute('aria-valuenow', v);
document.getElementById('thumb').style.left = (v * 10) + '%';
});
</script>

Browser Support

The following information will show you the current browser support for the aria-valuenow 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