<tfoot> Tag Syntax
<body> ... flow content expected ... <table> <thead> <tr> <th>...</th> ... </tr> </thead> <tbody> <tr> <td>...</td> ... </tr> </tbody> <tfoot> <tr> <td>...</td> ... </tr> </tfoot> </table> </body>
As shown in HTML Table Tutorial - How To Create Tables in HTML the <tfoot> tag comes before the <tbody> tag for the HTML table body. This is because when the table is displayed on multiple pages, such as when printing web pages, the table footer will appear at the bottom of those rows of a table that fit on a page, before the rest of the body of the table has been rendered.
Rules for coding the HTML tfoot
element
Child Elements of the <tfoot> tag
- <> tag(s)
- A <tr> tag for each table row with <td> tag(s) for each table cell in the table footer.