Open In App

HTML | DOM Input Time step Property

The DOM Input Time step Property is used to set or return the value of the step attribute of a number field. The step attribute in HTML is used to specify the legal interval for second and milliseconds in the Time field. The step attribute could be used with min and max attribute for creating a legal value.
For eg. If the value of step attribute is “2” then the legal; number’s will be 0,2,4,6,8 etc.

Syntax:



Article Tags :