The <tfoot> element groups the footer rows of a <table>. Those rows are usually a summary of the columns — totals, averages, or short notes. Each row is a <tr> with <th> or <td> cells.
Pair it with <thead> and <tbody> for a clear head / body / foot structure. A table may have only one<tfoot>. Place it after caption, colgroup, thead, and tbody; browsers still show it at the bottom.
Baseline · Widely available.
Not deprecated. Core tfoot support has been stable across browsers since about July 2015 (and much earlier in practice).
Deprecated attributes.
Do not use align, bgcolor, char, charoff, or valign on <tfoot>. Prefer CSS text-align, background-color, and vertical-align.
HTML4 vs modern order.
Older HTML4 put tfoot before tbody. In modern HTML, put tfoot after the body. Prefer the modern order.
Syntax
HTML Syntax
syntax.html
<tfoot>tr rows</tfoot>
The start tag is required. The end tag may be omitted if nothing follows in the parent <table>, but writing both tags is clearer. Content is zero or more <tr> rows.
Reference
Attributes
Modern <tfoot> has no current element-specific attributes — only global attributes. These older attributes are deprecated (shown for migration):
Style footer cells with selectors like tfoot th and tfoot td. The group still appears at the bottom even when written after tbody.
Frequently Asked Questions
The tfoot element groups footer rows of a table — usually totals, averages, or notes about the columns. It works with thead and tbody to mark clear table sections.
No. Use it when you need a summary or footer row group. Simple tables can use only table, tr, th, and td.
No. A table may have only one tfoot (and only one thead). You can have multiple consecutive tbody sections.
Inside table, after any caption, colgroup, thead, and tbody. Browsers still render the footer at the bottom of the table.
Yes. Older HTML4 required tfoot before tbody. In modern HTML, place tfoot after the body rows. Prefer the modern order.
No. Those attributes are deprecated. Style the footer with CSS such as background-color, text-align, and vertical-align.