New in HTML5.

<input step=””>

Attribute of
<input> HTML Tag
What does <input step=""> do?
Specifies the interval between valid values in a number-based input.

Code Example

<form>
 <label for="bigstep">Big steps between values</label><br>
 <input type="range" style="width: 100%;" step="10" min="1" max="100" name="bigstep">
 <label for="littlestep">Little steps between values</label><br>
 <input type="range" style="width: 100%;" step="1" min="1" max="100" name="littlestep">
 <label for="number">And here is steps on a number field (try "4")</label><br>
 <input type="number" name="numberfield" step="10">
 <input type="submit">
</form>



Adam is a technical writer who specializes in developer documentation and tutorials.

Browser Support for step

1016613510.6