<tfoot>...</tfoot>

HTML4 HTML5

Defines table footer[cite: 3]. Mandatory opening, optional closing tag[cite: 3].

Attributes:

align, char, charoff, valign - Not present in HTML5[cite: 3].

Example

Code:

<table>
  <thead>
    <tr>
      <th>Year</th>
      <th>Income</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>2000</td>
      <td>$25,000</td>
    </tr>
    <tr>
      <td>2010</td>
      <td>$69,000</td>
    </tr>
  </tbody>
  <tfoot style="font-weight: bold; color: blue;">
    <tr>
      <td>Total</td>
      <td>$94,000</td>
    </tr>
  </tfoot>
</table>

The browser will interpret this code as follows:

YearIncome
2000 $25,000
2010 $69,000
Total $94,000