coderef

<input type="range">Baseline · Widely available

The &#x3C;input type="range"> element represents a slider for choosing an inexact value between a minimum and maximum value.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Mar 16, 2017. Widely available since Sep 16, 2019.

Browser support

DesktopChrome
1–3Not supported
4+Supportedsince Jan 25, 2010
Current: 155
Edge
12+Supportedsince Jul 29, 2015
Current: 154
Firefox
1–22Not supported
23+Supportedsince Aug 6, 2013
Current: 157
Safari
1–3Not supported
3.1+Supportedsince Mar 18, 2008
Current: 27
MobileChrome Android
18–56Not supported
57+Supportedsince Mar 16, 2017
Current: 155
Firefox Android
4–51Not supported
52+Supportedsince Mar 7, 2017
Current: 157
Safari iOS
1–4.2Not supported
5+Supportedsince Oct 12, 2011
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: range.

Feature detection

JS · check before using
if ("type_range" in document.createElement("input")) {
  // the type_range attribute/property of <input> is supported
}

Sub-features

Support for each part of the feature (3). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
input.type_range412233.157525
input.type_range.tick_marks≤677910912.1≤6710912.2
input.type_range.vertical_orientation1241212016.512412016.5