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

HTML5 Tutorial FeedBurner

The HTML5 <caption> Tag  
When a table has to be placed, using the HTML5 <caption> tag is necessary. It is the key in putting proper labels for tables. If the HTML5 <caption> tag is used, it is important to take note that this has to be placed right after the <table> tag. However, only one caption per table is allowable.

Typically, the table caption should automatically put the texts above the table and right on the center of the document. However, with the use of text-align and caption-side properties for CSS, the caption may be aligned and placed accordingly too.

The <caption> tag is used in slightly different methods for HTML5 and HTML4.01. In HTML4.01, the align attribute is considered as obsolete. This attribute is not used for HTML5 either. Using the HTML5 <caption> tag has to go along with CSS to be able to adjust alignment.

The <caption> tag is capable of supporting the Global Attributes in HTML5. It is perfect for Event Attributes too.

All major web browsers work with the HTML5 <caption> tag. It is recognized By Firefox, Google Chrome, Opera, Internet Explorer and Safari.

Print HTML5 <caption> Tag Bookmark HTML5 <caption> Tag

Related Articles  
The HTML5 <acronym> Tag
The HTML5 <acronym> Tag is not supported in HTML5. It is originally used for HTML4.01 to define the acronyms.
The HTML5 <param> Tag
This tag is used to specify the parameters of the plugins. The use of HTML5 <param> tag has to be carefully noted ...
The HTML5 <figcaption> Tag
Remembering the function of HTML5 <figcaption> tag is easy because the name is suggestive of its use. The HTML5 ...
The HTML5 <pre> Tag
The HTML5 <pre> tag is the key in maintaining the spaces and line breaks. If the texts are placed inside this ...
The HTML5 <figure> Tag
The HTML5 <figure> tag is primarily used for adding self-contained content within the document. It is utilized ...
The HTML5 <ol> Tag
The formal definition of the HTML5 <ol> tag is that it specifies an ordered list. This works with <li> tag ...
More