html form select required code example
Example: html select required
<select name="color" id="color" required>
<option value="" selected disabled hidden>Choose color...</option>
<option value="R">Red</option>
<option value="B">Blue</option>
</select>