HTML: Optgroup Tag

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>
AttributeValueDescription
disableddisabledSpecifies that an option-group should be disabled
labeltextSpecifies a label for an option-group
Tagged : / / / / /