Select Lists and Option Groups
select makes a dropdown with option items. optgroup groups related options and multiple allows several choices.
Example
<select name="car">
<optgroup label="Swedish">
<option>Volvo</option><option>Saab</option>
</optgroup>
<optgroup label="German"><option>BMW</option></optgroup>
</select>Exercise
Preselect an option.
<option >Volvo</option>
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.