Easy Tutorial
❮ Ev Onbeforeprint Att Iframe Align ❯

HTML <optgroup> Tag

Example

Group related options together using the <optgroup> tag:


Browser Support

Most major browsers support the <optgroup> tag.


Tag Definition and Usage

The <optgroup> tag is often used to group related options together.

If you have many option groups, you can use the <optgroup> tag to easily group related options.


Differences Between HTML 4.01 and HTML5

None.


Attributes

Attribute Value Description
disabled disabled Specifies that the option group should be disabled.
label text Specifies a label for the option group.

Global Attributes

The <optgroup> tag supports global attributes. See the complete list of HTML Global Attributes.


Event Attributes

The <optgroup> tag supports all HTML Event Attributes.

❮ Ev Onbeforeprint Att Iframe Align ❯