Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML tag

HTML tag

Example

Pass The tag groups related options together:

Try it »


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

Supported by most major browsers tag.


Tag Definition and Usage Notes

The tag is often used to group related options together.

If you have many groups of options, you can use the tag to easily group related options together.


Differences between HTML 4.01 and HTML5

none.


property

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

Global Attributes

The tag supports global attributes; see the full list in [HTML Global Attributes](/tags/ref-standardattributes.html).

Event attribute

The tag supports all [HTML Event Attributes](/tags/ref-eventattributes.html).