New! My 44-page ebook "CSS in 44 minutes" is out! 😃

Get it now →

# optgroup

Defines a group of <option> elements.

Example: Copy

  <optgroup label="South America">
  <optgroup label="Europe">

Example: Copy

  <optgroup label="Winter">
  <optgroup label="Not winter" disabled>


Defines the label for the whole group.

"South America"

The label is not selectable.


Disables all the options of the group.

No value required.