You are here: Reference > HTML > attributes > max (input:range)

max attribute (input:range)

Browser support:
Sets the maximum value of a range type input object (slider).
Use it together with the min and step attributes.
JavaScript page for this attribute: max. You can find other example(s) there.

Possible values:

Integer, that sets the maximum value of the slider.
Default: 100.

Example HTML code 1:

This example illustrates the use of the max attribute:
0<input type="range" min="0" max="100" step="25" />100
<br /><br />
-100<input type="range" min="-100" max="200" step="25" />200
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content