OPTGROUP Element | OPTGROUP Object
HTML 4, 4.01, 5
Indicates a group of related options in a selection list.
HTML Syntax
<optgroup
class = classname
id = value
style = css_style_rules
title = text
>
An <optgroup
> element’s end tag can be omitted if the <optgroup
> element is immediately followed by another <optgroup
> element, if it is immediately followed by an <hr
> element, or if there is no more content in the parent element.
The <optgroup>
element supports the following attributes, in addition to global attributes common to all HTML elements.
disabled | disabled | Specifies that an option-group should be disabled |
label | text | Specifies a label for an option-group |
Example
<optgroup>MSN</optgroup>
See Also