<optgroup> Description:
The <optgroup> element defines groups of options in a select list.
<optgroup> Web Browser Support:
- Netscape 6, 7
- Mozilla 1
- Firefox 1
- Internet Explorer 6
- Opera 6, 7, 8
- Safari 1
- WebTV / MSNTV
- XHTML 1.0: XHTML Forms Module
<optgroup> Attributes:
- class (optional)
- dir (optional)
- disabled (optional)
- id (optional)
- label REQUIRED
- lang (optional)
- onclick (optional)
- ondblclick (optional)
- onkeydown (optional)
- onkeypress (optional)
- onkeyup (optional)
- onmousedown (optional)
- onmousemove (optional)
- onmouseout (optional)
- onmouseover (optional)
- onmouseup (optional)
- style (optional)
- title (optional)
<optgroup> End Tag:
</optgroup> REQUIRED
<optgroup> Contents:
HTML. The following tags are valid within the <optgroup> tag:
option
<optgroup> Valid Context:
The <optgroup></optgroup> tag is valid within the following tags:
select, form
<optgroup> Usage:
- basic options list
<form>
<select name="list">
<option>Name your favorite pet
<optgroup label="mammals">
<option>dog</option>
<option>cat</option>
<option>rabbit</option>
<option>horse</option>
</optgroup>
<optgroup label="reptiles">
<option>iguana</option>
<option>snake</option>
</optgroup>
</select>
</form>
<optgroup> Special Notes:
- Use this tag to create groups within the select options.
More <optgroup></optgroup> Information:

