Html 5 Tfoot Tag

In the html5 <tfoot> tag is used to group row content at footer place .in the <tfoot> tag you must use inside of <thead> and <tbody> elements. In the <thead> tag is used to group content in the head section and <tbody> tag is used to group content in the body section.

In the <tfoot> tag previous version 4.01 attributes are not supports in html5 and which tag have inside of <tr> tag.

Syntax:

<table>
  <tfoot> ... </tfoot>
</table>

Example Code

<table>
  <thead>
  <tr>
    <th>Car Names</th>
    <th>Price</th>
  </tr>
  </thead>
  <tfoot>
  <tr>
    <td>Defender</td>
    <td>3008899</td>
  </tr>
  </tfoot>
</table>

Out Put:



Car Names Price
Defender 3008899

In the above example <tfoot> tag has been added "Car Names" and "Price"





Content