Learn html - html tutorial - optgroup tag in html - html examples - html programs
- The <optgroup> tag is used to collect relevant options in a drop-down list within a <select> element.
- Whenever we have a lengthy list of options, groups of similar options are simple to hold for a user.
- The <optgroup> tag supports Global Attributes and Event Attributes.
Syntax for <optgroup> tag:
Sample Coding for <optgroup> tag in HTML:
Code Explanation for <optgroup> tag:
- <optgroup> tag is used to group the related contents in a drop-down list.
- label is an attribute, which tends to describe the title/caption for an option-group.
Output for <optgroup> tag:
- By clicking the dropdown list the option values is displayed in the option group.
- CSS, HTML, JAVA & C are the Option Values.
- WEB DEVELOPEMENT IN WIKITECHY & PROGRAMMING TECHNOLOGY IN WIKITECHY are the Option groups.
Attributes of <optgroup> tag:
Attribute |
Value |
HTML4 |
HTML5 |
Description |
label |
disabled |
Yes |
Yes |
Describes a label for an option-group. |
disabled |
text |
Yes |
Yes |
Defines if an option-group should not be shown. |
Browser Support for <optgroup> tag in HTML:
Related Searches to optgroup tag in html
nested optgroup
html optgroup selectable
html option group radio buttons
angular optgroup
optgroup css
bootstrap optgroup
optgroup jquery
optgroup multiple select
html tutorialshtml editor html code html form html tutorial html color html color codes html table html img html5 html code for website html and css html programs html website free html editor html5 tutorial wysiwyg html editor html tutorial pdf html converter php tutorial html example html tutorial css tutorial html css html tags html basics code html html online html mailto html lang html tags list