The …. tag helps to group related choices when we have a long list of options to select from the drop-down list created using the tag.
<select>
<optgroup>
<option>……</option>
</optgroup>
<optgroup>
<option>……</option>
</optgroup>
</select>
Attribute | Value | Description |
disabled | disabled | Specifies that an option-group should be disabled |
label | text | Specifies a label for an option-group |