Skip to content
HTML.ONE
Home HTML Elements

HTML <optgroup> Element

Groups related options within a select.

Example

<select aria-label="Fruit"><optgroup label="Citrus"><option>Orange</option></optgroup></select>

Further reference

HTML Living Standard

Live preview