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

HTML5 Tutorial FeedBurner

The HTML5 <label> Tag  
The main purpose of the HTML5 <label> tag is to provide a name for the <input> element. It is not something that would provide benefits for the author of the HTML document. However, the HTML5 <label> tag is important for the users of the web page. When the user scrolls the mouse over the HTML5 <label> tag, the control is toggled.

The HTML5 <label> tag is new and it is not present in HTML4.01 so there could not be any comparison made. It is because the HTML5 <form> tag which the HTML5 <label> tag is primarily used for is also not present in HTML4.01.

Using the HTML5 <label> tag is not difficult for the author since it is possible to use it harmoniously along with the Event Attributes and Global Attributes in HTML5. The HTML5 <label> tag is also interpreted properly by the major web browsers like Internet Explorer, Safari, Opera, Google Chrome and Firefox.

The attributes for HTML5 <label> tag are the following:

Attribute

Value

Description

For

element_id

It is necessary in determining the form element that a label is associated to

form (New)

form_id

It is utilized in pointing out one or more forms that the label is incorporated in

Print HTML5 <label> Tag Bookmark HTML5 <label> Tag

Related Articles  
The HTML5 <embed> Tag
The HTML5 <embed> tag is utilized as a container of other applications or interactive content that is ...
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 <div> Tag
The HTML5 <div> tag is the key in separating different partitions within an HTML document. It is capable of ...
The HTML5 <tfoot> Tag
The HTML5 <tfoot> tag is utilized in grouping footer within an HTML document. The HTML5 <tfoot> tag is ...
The HTML5 <body> tag
The HTML5 <body> tag is an element which defines the coding of an HTML document where all the contents of the ...
The HTML5 <source> Tag
The <source> tag is applicable for media sources that have to work along with the media elements. For authors who ...
More