
The Complete Idiot's HTML Tag Reference
| Index
| Previous Tag: <OL>
| Next Tag: <OPTION>
|
<OPTGROUP>
Creates a logical grouping of elements in an <OPTION> list.
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
Not supported |
Not supported |
Notes:
- This tag requires the </OPTGROUP> end tag.
- Place the group of related <OPTION> tags between <OPTGROUP> and </OPTGROUP>.
Attributes:
- CLASS
= "Text"
The style sheet class used by the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
Not supported |
Not supported |
Notes:
-
You can specify two or more classes; be sure to separate each class name with a space.
- DISABLED
Prevents the user from being able to select an option from the group.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
Not supported |
Not supported |
- ID
= "Text"
An alphanumeric string that uniquely identifies the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
Not supported |
Not supported |
Notes:
-
Although you can use letters and numbers for the ID, the first character must be a letter.
- LABEL
= "Text"
(Required)
The text that identifies the option group.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
Not supported |
Not supported |
- LANG
= "Text"
The language used by the tag's attribute values and text content.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
Not supported |
Not supported |
- STYLE
= "Text"
The style or styles to use with the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
Not supported |
Not supported |
Notes:
-
If you enter multiple style properties, separate each one with a semi-colon (;).
Example:
<SELECT NAME="Hair">
<OPTGROUP LABEL="Color">
<OPTION>Black</OPTION>
<OPTION>Blonde</OPTION>
<OPTION>Brunette</OPTION>
<OPTION>Red</OPTION>
<OPTION>Something neon</OPTION>
</OPTGROUP>
<OPTGROUP LABEL="Style">
<OPTION>Bouffant</OPTION>
<OPTION>Mohawk</OPTION>
<OPTION>Page Boy</OPTION>
<OPTION>Permed</OPTION>
<OPTION>Shag</OPTION>
<OPTION>Straight</OPTION>
<OPTION>Style? What style?</OPTION>
</OPTGROUP>
</SELECT>
How It Looks:
-
| Index
| Previous Tag: <OL>
| Next Tag: <OPTION>
|
|