The HTML optgroup tag is used to group options within inside a <select> tag.AttributesAttributeDescriptiondisabledThis boolean attribute is used to specify ehether the element is disabled.labelUsed to specify a label for each groups.Example<select id="lang"> <optgroup label="Compiled"> <option>C</option> <option>C++</option> <option>C#</option> </optgroup> <optgroup label="Interpreted"> <option>PHP</option> <option>JavaScript</option> </optgroup> </select>Output C C++ C# PHP JavaScript Subscribe Join the newsletter to get the latest updates. Success Great! Check your inbox and click the link Error Please enter a valid email address!