Favorites

ARIA slider Role

slider
ARIA Widget RoleThis ARIA role is supported by all modern browsers.
Updated 28th November 2026

The slider role marks a custom control where the user picks a value from a range by moving a thumb, such as a volume control. An input with type range has this role.

☕
Enjoying this site?

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

Buy us a coffee

Description

The slider role identifies an input where the user selects a value from a range, usually by dragging a thumb along a track. It requires aria-valuenow, and normally uses aria-valuemin and aria-valuemax too (0 and 100 by default). Use aria-valuetext when the number needs a readable form, such as "$250" or "Medium".

A custom slider must be focusable and respond to the arrow keys (one step), Page Up/Page Down (a bigger step) and Home/End (the minimum and maximum), and it should work with a pointer too. Its default orientation is horizontal.

The native <input type="range"> has this role and all the behavior built in, and it can be styled with CSS, so it is usually the better option. A range with two thumbs is built as two sliders.

Use the native HTML <input> element where you can: it already has the slider role, with the expected keyboard and browser behavior built in.

Properties

Category
Widget
HTML equivalent
<input>
Accessible name from
author
Required parent role
None
Required child roles
None

ARIA Attributes

Syntax

<element role="slider">

Example

<label for="r">Brightness</label>
<input id="r" type="range" min="0" max="100" value="60">

<div id="vl" style="margin-top:8px">Volume</div>
<div role="slider" tabindex="0" aria-labelledby="vl" aria-valuemin="0" aria-valuemax="10" aria-valuenow="4"
style="width:200px;height:8px;background:#ddd;position:relative">
<span style="position:absolute;left:40%;top:-4px;width:16px;height:16px;border-radius:50%;background:#2563eb"></span>
</div>

Browser Support

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

This ARIA role 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