HTML < caption > Tag - Learn About Website | DaddyFile

0

HTML <caption> Tag

Example

A table with a caption:


<table>
  <caption>Monthly savings</caption>
  <tr>
    <th>Month</th>
    <th>Savings</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
  </tr>
</table>

Definition and Usage

The <caption> tag defines a table caption.
The <caption> tag must be inserted immediately after the <table> tag.
Note: You can specify only one caption per table.

Differences Between HTML 4.01 and HTML5

The align attribute is removed from HTML5.

Post a Comment

 
Top