<input type="number" min="10" step="2" />`step` HTML attribute / notebook
`step` HTML attribute
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
input:invalid {
border: solid red 3px;
}<input id="myNumber" name="myNumber" type="number" step="2" min="1.2" />