Warning:
This wiki has been archived and is now read-only.

Elements/tfoot

From HTML Wiki
Jump to: navigation, search

<tfoot>

The <tfoot> element represents the block of rows that consist of the column summaries (footers) for the parent table element, if the tfoot element has a parent and it is a table.

Point

  • As a child of a table element, after any caption, colgroup, and thead elements and before any tbody and tr elements, but only if there are no other tfoot elements that are children of the table element. [Example A]
    Or, as a child of a table element, after any caption, colgroup, thead, tbody, and tr elements, but only if there are no other tfoot elements that are children of the table element.

HTML Attributes

See global attributes.


Examples

Example A

[try it]

<table>
  <caption>
    <p>table 1. List of HTML elements</p>
  </caption>
  <thead>
    <tr>
      <th>Number</th>
      <th>element</th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <td colspan="2">copyright ...</td>
    </tr>
  </tfoot>
  <tbody>
    <tr>
      <td>4.1.1</td>
      <td>html</td>
    </tr>
    <tr>
      <td>4.2.1</td>
      <td>head</td>
    </tr>
  </tbody>
</table>

HTML Reference

The HTML5 specification defines the <tfoot> element in 4.9.7 The tfoot element.