select field empty value code example
Example 1: select empty option
<option disabled selected value> -- select an option -- </option>
Example 2: select empty option
<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>