Computer Science, asked by harshojha2209, 1 year ago

Which html element is used to make a drop down selection with options divided into sections

Answers

Answered by sonja
2

Example:-

<select>

<optgroup label="Swedish Cars">

<option value="volvo">Volvo</option>

<option value="saab">Saab</option>

</optgroup>

<optgroup label="German Cars">

<option value="mercedes">Mercedes</option>

<option value="audi">Audi</option>

</optgroup>

</select>

Similar questions