Html 5 Form Step Attribute Tag

In the step attribute is used to indicate legal number intervals for the input type field. which is restrict number or date or date pickers or range for input field types.If the example step = "5" in the Legal number are -5,0,5,10,15 etc...

Syntax:

<input step = "5" />

Example Code



Type Number : <input type = "number" name = "num" id = "num" min = "0" step = "10" step="5" />

Out Put :

Type Number :

In the above input type is a number and you can enter a number minimum 0 and maximum 10 and restricted step is 5 which means you can enter -5 ,0 , 5,10 ,15.





Content