HTML optgroup tag
by Rekha[ Edit ] 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>