Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML tfoot Tag

Improve Article
Save Article
  • Difficulty Level : Basic
  • Last Updated : 01 Aug, 2022
Improve Article
Save Article

 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 of the text content.
  • valign: It is used to set the vertical 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 these attributes is in numeric form.



<!DOCTYPE html>
        <h2>tfoot Tag</h2>
        <table >
                    <th>User Id</th>
            <!-- tfoot tag starts from here -->
                    <td>Total user</td>
            <!-- tfoot tag ends here -->


Supported Browsers: 

  • Google Chrome 1 and above
  • Edge 12 and above
  • Internet Explorer
  • Firefox 1 and above
  • Safari
  • Opera

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!