Table footer. The HTML <tfoot> tag is used for adding a footer to a table. tfoot can be used just once within a table element and must appear before a tbody element.
The <tfoot> tag is used in conjunction with the <tfoot> tag and the <thead> tag in determining each part of the table (header, footer, body). Browsers can use this information to enable scrolling of the table body independently of the header and footer - particuarly useful for large tables. Also, when printing a large <table> that spans multiple pages, this information can enable the table header and footer to be printed at the top and bottom of each page.
Note: If you use this element, it must be declared in one of the following places:
<table> <thead> <tr> <th>Name</th> <th>Nationality</th> </tr> </thead> <tfoot> <tr> <td>Footer 1</td> <td>Footer 2</td> </tr> </tfoot> <tbody> <tr> <td>John</td> <td>English</td> </tr> <tr> <td>Pedro</td> <td>Portuguese</td> </tr> </tbody> </table>