The <optgroup> element

Short for ‘Option Group’. A group of options within a <select> control, grouped together with a name in the user interface to make it easier for the user to find the option they want. These elements can't be nested, so there is only one level of grouping.

Full list of attributes

All the usual HTML global attributes are available

disabled
If this is set then the whole group of options will be disabled, as if they all had a disabled attribute themselves.
label
A textual label for the browser to use to describe this group of options.

Further information

The Web Design Academy Contact us

By form

By Phone

+44 (0)113 234 4611

By email

enquiries@thewebdesign.academy

By snail mail

Suite 3 15 South Parade Leeds LS1 5PQ United Kingdom