optgroup

The optgroup HTML element represents a group of option elements with a common label.

Syntax

HTML

<optgroup attribute-name="attribute-value"></optgroup>

Attributes

Global

Name Value Description
disabled disabled | empty Specifies that the element represents a disabled control
label string Specifies the label of the element

Examples

disabled

label

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu