step attribute

<input step='value'>


step attribute provides the number intervals for the <input>.

Example Code:

Result :
Quantity (between 1 and 10):
  • step attribute illustrates the legal intervals for the input field.
  • It functions with the input types like "month, datetime-local, range, date, number, datetime, time and week".


It will function only in "Opera and Chrome" web browsers.

Ask Questions

Ask Question