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