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>
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>
required option for select tag
<!--- This option cannot be select and this will be default option too. -->
<option selected="true" disabled="disabled">Select a Option</option>
<!-- Here is a example : -->
<label for="payment">Choose a Type :</label>
<select name="payment" required>
<option selected="true" disabled="disabled">Select a Option</option>
<option value="recharge">Recharge</option>
<option value="withdraw">Withdraw</option>
</select>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us