HTML | tfoot Tag

The <tfoot> tag in HTML is used to give footer group of content. This tag is used in HTML table with header and body which is known as “thead” and “tbody”. <tfoot> tag is child tag of table and parent tag of <tr> and <td>.


<tfoot> // Table footer contents... </tfoot>

Attributes: The <tfoot> tag contains many attributes which are supported by HTML4.1 but not supported by HTML5.

  • align: Set the alignment the text content.
  • valign: It is used to set the vertically alignment of text content.
  • char: Aligns the content in a header cell to a character.
  • charoff: It is used to sets the number of characters that will be aligned from the character specified by the char attribute. The value of this attributes are in numeric form.






<!DOCTYPE html>
        <title>tfoot tag</title>
            h1 {
            tfoot {
            table, tbody, td {
                border: 1px solid black;
                border-collapse: collapse;
        <h2>tfoot Tag</h2>
        <table >
                    <th>User Id</th>
            <!-- tfoot tag starts from here -->
                    <td>Total user</td>
            <!-- tfoot tag ends here -->



Supported Browsers: The browser supported by <tfoot> tag are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :
Practice Tags :

Be the First to upvote.

Please write to us at to report any issue with the above content.