Articles → HTML 5 → Range Input Element In Html5
Range Input Element In Html5
Purpose
Syntax
Example
<!DOCTYPE html>
<html>
<body>
<input type="range" />
</body>
</html>
Try It
Output
Click to Enlarge
Min, Max, And Steps Attribute
- Min attribute → specifies the minimum value of the range. The default value is zero
- Max attribute → specifies the maximum value of the range. The default value is 100
- Step attribute → specifies the number of intervals. For example, if the min value is zero, the max value is 100 and the step is 10 so intervals would be 10, 20, 30… 100
Browser Support
Internet Explorer | Firefox | Chrome | Safari | Opera | Edge |
---|
10.0 | 23.0 | 4.0 | 3.1 | 10.1 | Yes |
Video