back

Option group

Tag: <optgroup>

The option group tag groups options in a select dropdown list.
Options tags are placed inside the optgroup and the group headings are emphasised in the list.
The attribute 'label' is used the name the group heading.
The option group is closed with the closing tag </optgroup>

Example