Resources Menu


Quick Reference Sheets for Webmasters

Quick Reference sheets are packed full of useful information for all webmasters.

HTML Reference Sheet

HTML Tag List


<optgroup>
The OPTGROUP element defines and option group for a set of options contained with in a select field of a form. This is used to group options together under a particular label.

Attributes
label
Value(s) : text for label
Sets a label to be displayed for the optgroup.
disabled
Value(s) : disabled
This disables the option group on it's intial load.
example:
<select name="Countries">
<optgroup label="European">
<option value="UK">United Kingdom</option>
<option value="NOR">Norway</option>
</optgroup>
<optgroup label="North American">
<option value="CA">Canada</option>
<option value="US">USA</option>
</optgroup>
</select>