Answers for "default in select html"

8

select default value

<option selected>
5
</option>
Posted by: Guest on April-03-2020
1

html select default

<label for="cars">Choose a car:</label>
<select name="cars" id="cars">
  	<option value="volvo">Volvo</option>
    <option value="saab" selected>Saab</option>
</select>
Posted by: Guest on March-20-2021

Browse Popular Code Answers by Language