TRENDING TOPICS

×

<optgroup> tag in HTML

The <optgroup> tag is used to defines a group together related options in a drop-down list.

Important Description

  • Open and close tag required of <optgroup>.
  • The 'label' attribute is required, and will be rendered as the first item in the section.

Example of <optgroup> tag

Result Look Like

<optgroup> Tag Browser Support

Element Chrome Edge Firefox Safari Opera
<optgroup> Yes Yes Yes Yes Yes

Global Attributes

Event Attributes

Attributes

Attribute Value Description
disabled disabled Defines that an option-group should be disabled
label text Defines a label for the option-group

Advertise With Us

We offer sponsored posts and guest posts with do-follow links, back-links, and other advertising services, To advertise email us at "advertise@gdatamart.com"

© 2021 GDATAMART.COM (All Rights Reserved)