I have a code and I want, if there is no input, the border color is blue. I have this:
<fieldset>
<label>Number</label>
<input type="number" value="1" max="10" min="1" step="1" required>
</fieldset>
and
input:out-of-range {
border: solid red 1px;
}
input[value=""] {
border: solid purple 1px;
}
I want the number box to be purple when its empty