HTML and CSS Reference
In-Depth Information
Name
optgroup
Synopsis
<optgroup> . . . </optgroup>
Definesalogicalgroupof
option
elementswithina
select
menuformcontrol.An
optgroup
element may not contain other
optgroup
elements (they may not be nested).
Usage
Categories:
None
Permitted contexts:
As a child of a
select
element
Permitted content:
Zero or more
option
elements
Start/end tags:
Required/Optional (Required/Required in XHTML)
Attributes
HTML5 Global Attributes
disabled
(
disabled="disabled"
in XHTML)
Indicates that the group of options is nonfunctional. It can be reactivated with a script.
label="text"
Required
. Specifies the label for the option group.