The step Attribute
The step Attribute
//an input field with a specified legal number intervals
<input type="number" name="points" step="3">
- Specifies the legal number intervals for an <input> element.
- Example: if step="3", legal numbers could be -3, 0, 3, 6, etc.
- Can be used together with the max and min attributes to create a range of legal values.
- Works with the following input types: number, range, date, datetime-local, month, time and week.