Example

A simple <optgroup> tag that open PNLdev.com link:

Laboratory

description & Usage

To group the options in the drop-down list and the <select> tag, they use the <optgroup> tag.

The main task of the <optgrouip> tag is when the user has defined a long list of options in his document and intends to manage them.

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
<optgroup>

Attributes

Attributes Values Description
disabled
disabled
en
label
text
en

Global Attributes

The optgroup tag supports the HTML Global Attributes.

Event Attributes

The optgroup tag supports the HTML Event Attributes.