Skip to content
Related Articles

Related Articles

How to group footer content in form of table using HTML ?

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 15 Oct, 2020

In this article, we define the group of footer content in a table by using the <tfoot> tag in HTML. It  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>  



<!DOCTYPE html>
        h1 {
            color: green;
        tfoot {
            color: blue;
        td {
            border: 1px solid black;
            border-collapse: collapse;
            How to group the footer content 
            in a table using HTML ?
                    <th> Id</th>
            <!-- tfoot tag starts from here -->
                    <td>Total user</td>
            <!-- tfoot tag ends here -->


Supported Browsers:

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!