<form action="">
<input type="number" min="10" max="20">
<button type="submit">submit</button>
</form>
<style>
:out-of-range { background-color: red; }
:in-range { background-color: green; }
</style>
<form action="">
<input type="number" min="10" max="20">
<button type="submit">submit</button>
</form>
<style>
:out-of-range { background-color: red; }
:in-range { background-color: green; }
</style>