Tables
HTML <tfoot> element
Groups table rows that summarize or conclude the table's data, often totals. Place footer rows in the appropriate row group and use header cells for labels such as Total when needed. The footer is part of the table, not the page footer landmark. It accepts global HTML attributes; individual global features may be inapplicable or restricted.
Formal Syntax & Structure
html syntaxhtml
<tfoot> <tr> <td>Total</td> </tr></tfoot>Return Value
HTMLTableSectionElement
Content model: tr and script-supporting elements.
Working Example
Example Snippethtml
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <title>HTML example</title> </head> <body> <table> <thead> <tr> <th scope="col">Item</th> <th scope="col">Count</th> </tr> </thead> <tbody> <tr> <td>Books</td> <td>2</td> </tr> </tbody> <tfoot> <tr> <th scope="row">Total</th> <td>2</td> </tr> </tfoot> </table> </body></html>