πŸš€ LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Expert Masterclasses.
πŸŽ“ COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.
REFERENCEhtml

html Documentation

LOADING ENGINE...

HTML <tfoot> Tag

Master the Semantic Table Footer Structure

tfoot.html
<!-- Footer -->
<tfoot><tr><td>Total</td></tr></tfoot>
πŸ“‹
tfoot.html
1 / 7
πŸ“‹

Tutor:The <tfoot> tag groups footer rows in a table. Use it for totals, summaries, or footnotes. It goes inside <table>. Contains <tr> with <td> or <th>. Together with thead and tbody it gives semantic structure.


Tfoot Mastery

Table footer: thead, tbody, tfoot.

Concept 1: The Tfoot Tag

The <tfoot> tag groups footer rows in a table. Use it for totals, summaries, or footnotes. It goes inside <table> and contains <tr> with <td> or <th>.

System Check

Which element groups the footer rows of a table (e.g. totals)?


Community Holo-Net

Table Structure Patterns

Using thead, tbody, tfoot? Share your patterns.

Enjoying this guide?

Codesyllabus is 100% free and open-source. Support our mission, pay for server infrastructure, and fuel new tutorials by buying us a coffee!

HTML <tfoot> Tag

Author

Pascual Vila

Frontend Instructor.

The <tfoot> tag groups footer rows in a table. Use it for totals, summaries, or footnotes. It goes inside <table> and contains <tr> with <td> or <th>. Browsers render tfoot at the bottom of the table even if you write it before <tbody> in the HTML.

Structure

Order: <caption>, <thead>, <tbody>, <tfoot> (or thead, tfoot, tbodyβ€”both are valid). Use thead for header rows, tbody for body rows, tfoot for footer rows. Improves semantics and accessibility.

Best practices

Use tfoot when the table has footer content (totals, notes). Use scope on <th> in thead/tfoot and <caption> for table title. Screen readers use this structure.

Tfoot Tag Glossary

<tfoot>
Table footer. Groups footer rows (totals, summaries). Contains <tr> with <td> or <th>. Renders at bottom of table.
thead / tbody / tfoot
thead = header rows, tbody = body rows, tfoot = footer rows. Optional but improve semantics and accessibility.
Order
Caption, thead, tbody, tfoot. tfoot can appear before tbody in HTML; browser still renders it at bottom.