<OPTGROUP> | NN 6 IE 5(Mac)/6(Win) HTML 4
<OPTGROUP>...</OPTGROUP> | HTML End Tag: Required
The optgroup element is a container for option elements within a select element. Each optgroup can represent a subgroup of options within the total list of select elements. In IE 6/Windows and Netscape 6, the label text appears in a bold-italic font and is not selectable. Regular option element text is then listed below the label and is indented. In IE 5/Mac, the presence of optgroup elements turns a popup menu into a two-level hierarchical menu.
Example
    <SELECT name="carCos">
        <OPTGROUP label="American">
            <OPTION value="General Motors">General Motors</OPTION>
            <OPTION value="Ford">Ford Motor Company</OPTION>
            <OPTION value="Chrysler">DaimlerChrysler</OPTION>
        </OPTGROUP>
        <OPTGROUP label="Japanese">
            <OPTION value="Toyota">Toyota</OPTION>
            <OPTION value="Honda">Honda</OPTION>
            <OPTION value="Nissan">Nissan</OPTION>
        </OPTGROUP>
    </SELECT>
Object Model Reference
    [window.]document.getElementById(elementID)
Element-Specific Attributes
disabled | label
Element-Specific Event Handler Attributes
None.

disabled | NN 6 IE 5/6 HTML 4
disabled | Optional
The presence of this attribute disables the optgroup element and its nested option elements. Other optgroup elements remain enabled.
Example
    <OPTGROUP label="Engineering" disabled>
Value
The presence of this attribute sets its value to true.
Default
false
Object Model Reference
    [window.]document.getElementById(elementID).disabled

label | NN 6 IE 5/6 HTML 4
label="labelText" | Required
The text of the select element entry for the optgroup is defined by the label attribute. This is plain text, not HTML, and the user cannot select this text from the list.
Example
    <OPTGROUP label="Engineering" disabled>
Value
Any string of characters. The string must be inside a matching pair of (single or double) quotation marks.
Default
None.
Object Model Reference
    [window.]document.getElementById(elementID).label

lang | NN 3 IE 4 HTML 4
lang="languageCode" | Optional
The language being used for the element's attribute values and content. A browser can use this information to assist in proper rendering of content with respect to details such as treatment of ligatures (when supported by a particular font or required by a written language), quotation marks, and hyphenation. Other applications and search engines might use this information to aid the selection of spell-checking dictionaries and the creation of indices.
Example
    <SPAN lang="de">Deutsche Bundesbahn</SPAN>
Value
Case-insensitive language code.
Default
Browser default.
Object Model Reference
    [window.]document.getElementById(elementID).lang