HTML optgroup tag

by Rekha 2009-04-25 15:01:52

The <optgroup> tag is used to group together related options in a select list.If you have a long list of options, groups of related options are easier to handle for the user.

<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>


Tagged in:

1694
like
0
dislike
0
mail
flag

You must LOGIN to add comments