Logo
  Sunday, May 20, 2012
Sign-In  |  Sign-Up  |  Contact Us  | Bookmark |  RSS Feed

HTML5 Tutorial FeedBurner

The HTML5 <optgroup> Tag  
The HTML5 <optgroup> tag is important when putting a drop down list within the HTML document. The main purpose of the HTML5 <optgroup> tag is to group all related options. Because of this, it is easier for the author to collate all options even if there is a long list of these.

Using the HTML <optgroup> tag is similar in both HTML 4.01 and HTML5.

To make tasks easier for the author, using the HTML5 <optgroup> tag is hassle-free since it is compatible for the major web browsers like Internet Explorer, Google Chrome, Safari Opera and Firefox. Even better, the HTML5 <optgroup> tag is also supportive of the Global Attributes and Events Attributes in HTML5.

Here is the list of attributes for HTML5 <optgroup> tag:

Attribute

Value

Description

label

text

This is used when putting a label for the option-group

disabled

disabled

This is used in indicating that an option-group has to be disabled

Print HTML5 <optgroup> Tag Bookmark HTML5 <optgroup> Tag

Related Articles  
The HTML5 <basefont> Tag
The <basefont> tag is not supported in HTML5. This tag is used to set the default font color, font size, and font ...
The HTML5 <base> Tag
The HTML5 <base> tag is particularly the target or the base URL for all the relative URLs in an HTML document. ...
The HTML5 <thead> Tag
The main purpose of the HTML5 <thead> tag is to put all header content within the HTML document in a single ...
The HTML5 <meter> Tag
The HTML5 <meter> tag is also referred to as gauge, for those who are into creating HTML documents. It is ...
The HTML5 <head> Tag
The main purpose of the HTML5 <head> tag is to serve as a container for all the elements for the head of a ...
The HTML5 <time> Tag
The main purpose of the HTML5 <time> tag is to provide the time according to a 24-hour clock. It is also ...
More