range attribute

<input type=range>


Range Attribute indicates that the input fields must contain value from a range of numbers.
Attributes which can be used with this input type are mentioned below:
max Mentions the maximum value permitted in input field.
min Signifies the minimum value permitted in input field.
step Legal number of intervals is mentioned.
value Default value of the range.

Example Code:

Result :

  • If it is not applicable in a browser, then the text box will be displayed. If it is applicable, then it acts like a "Slider Control".
  • Make use of the "Min and Max" attributes to set limit for entry of numbers in the input fields.


It will function only in Chrome, Safari and Opera browsers.

Ask Questions

Ask Question