HTML <optgroup> element


<optgroup> tag groups some options in a select list. It's a void tag, no closing tag </optgroup> is needed.

<select>
<optgroup label=USA>
<option>New York
<option>Chicago
<option>Los Angles
</optgroup>
<optgroup label=India>
<option>New Delhi
<option>Mumbai
<option>Chinnai
</optgroup>
</select>


Specific attributes of <optgroup> tag:
AttributeDescription
label label of the group
disabled disable the group