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