HTML optgroup tag

An HTML optgroup tag is used to group options inside a select tag. It supports HTML global attributes.

HTML optgroup tag

The HTML optgroup tag is used to group options within inside a <select> tag.


AttributeDescriptiondisabledThis boolean attribute is used to specify ehether the element is disabled.labelUsed to specify a label for each groups.


<select id="lang">
    <optgroup label="Compiled">
    <optgroup label="Interpreted">


Share Tweet Send
You've successfully subscribed to Geekinsta
Great! Next, complete checkout for full access to Geekinsta
Welcome back! You've successfully signed in
Success! Your account is fully activated, you now have access to all content.