HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


HTML optgroup Tag

HTML optgroup Tag



The optgroup tag is used to group related options in a select element. It is useful in cases when the list is very long


Attribute Explanation:-


Attribute Value Description
disabled disabled Specifies that an option-group should be disabled
label text Specifies a label for an option-group.




Its syntax is:- < optgroup >

Code Explanation

All Tutorials related to HTML Tags List

All Sections related to HTML