New in HTML5.

<input step="">

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
Attribute of
How To Use Input To Create Form Fields In HTML: Easy Tutorial
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

iefirefoxchromeedgesafariopera
1016613510.6