Skip to content
Related Articles

Related Articles

How to add table footer in HTML ?

Improve Article
Save Article
Like Article
  • Last Updated : 13 Jan, 2022

To add a table footer on an HTML table you can use the HTML tfoot tag. The footer is required when the developer wants to show the conclusion or the result of the table data in a single row.


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

Below example will illustrate the concept of table footer and clear your thoughts about how to create a table footer in HTML.

Example: In this example, we will create a table that contains 2 courses and a price with the total price at the table footer.


<!DOCTYPE html>
         h1 {
         color: green;
         table, th, td {
         border: 2px solid black;
         <h2>How to create table footer in HTML</h2>


Table Footer

Table Footer

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!