The
HTML optgroup label Attribute is used to specify a label for an
<optgroup> Element.
Syntax:
<optgroup label="text">
Attribute Values: It contains the value i.e
text which specify the description for a optgroup Element.
Example:
Output:
👁 Image
Supported Browsers: The browsers supported by
HTML optgroup label Attribute are listed below:
- Google Chrome 1
- Edge 12
- Internet Explorer 5.5
- Firefox 1
- Apple Safari
- Opera