HTML tag

HTML tag is used to group related in a drop down list within

Using tag with

Syntax

Following are some specifications about the HTML tag

Display Inline
Start tag/End tag Both Start and End tag
Usage Forms and Inputs

Example

Test it Now

Output:

HTML optgroup tag

Attribute:

Tag-specific attributes:

Attribute Value Description
disabled disabled If it is set then options of that optgroup will be disabled.
label text It defines the label for the group which will be displayed in the drop-down list. It is required attribute.

Global attribute:

HTML tag supports the global attributes in HTML

Event attribute:

HTML tag supports the event attributes in HTML.

Supporting Browsers

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes
Next TopicHTML option Tag




Contact US

Email:[email protected]

HTML optgroup Tag
10/30