caption tag



Caption tag provides a "title" for a table. The title of the table is termed as "Caption".
<caption> <tr> <th>Text</th> <th>Text</th> </tr> <tr> <td>Text</td> <td>Value</td> </tr> </caption>

Example Code:

Result :

Market Share
Company Percent
Nokia 60
Sony Ericson 40

  • This tag must be placed inside the <table>.
  • The titles are placed at the "center" of the table.
  • User can use only one title for a table.
It is available in the previous versions of HTML.
It supports both Global Attributes and Event Attributes in HTML5.


It will function in all the browsers.

Ask Questions

Ask Question