/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: step

[this page | pdf | back links]

The HTML step attribute indicates the accepted number intervals for an <input> element. For example, if step="4" then the accepted numbers could be -4, 0, 4, 8, ….

 

Valid attribute values (when used with <input> elements) include:

 

Value

Description

integer

Number of intervals

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile