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

step attribute (input:range)

Browser support:
Sets the discrete step size of the input:range element.
Use it together with the max and min attributes.
JavaScript page for this attribute: step. You can find other example(s) there.

Possible values:

Integer, that sets the difference between two neighboring values.
Default: 1.

Example HTML code 1:

This example illustrates the use of the step attribute:
Step size is 10:
<input type="range" step="10" min="0" max="100" />
<br /><br /><br />
Step size is 20:
<input type="range" step="20" min="0" max="100" />
Did you find this example helpful? yes no

Supported by tags:

Related pages:

User Contributed Comments

Post Content

Post Content