Attributes · <input step>
Which attributes work with step?
min (or value) sets where the steps start; max sets where they stop.
| Attribute | What it does | Docs |
|---|---|---|
step | The gap between allowed values, counted from min. step="0.01" allows cents; step="any" turns the check off. For time inputs it is in seconds. | MDN |
min | The lowest allowed value and the step base: with min="1" step="2", only 1, 3, 5… pass. Without min, the base is the value attribute. | MDN |
max | The highest allowed value. The arrow keys and spinner stop at the last valid step below it. | MDN |
value | The starting value, and the step base when there is no min. | MDN |




