VOOZH about

URL: https://www.geeksforgeeks.org/html/html-tfoot-tag/

⇱ HTML tfoot Tag - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML tfoot Tag

Last Updated : 21 May, 2026

The <tfoot> tag in HTML is used to define the footer section of a table, typically for summary content.

  • Used to provide a footer group of content in an HTML table along with <thead> and <tbody>.
  • Acts as a child of <table> and a parent of <tr> and <td> tags.
  • Must contain one or more <tr> elements inside it.

Syntax

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

Attributes

The attributes for the <tfoot> tag are supported by HTML4.1 only but are now deprecated in HTML5. To get the same effect use CSS to style text-align and vertical align.

  • align: The align attribute is used to set the horizontal alignment of the text content.
  • valign: The valign attribute is used to set the vertical alignment of the text content.
  • char: The char attribute is used to align the content in a cell based on a specific character.
  • charoff: The charoff attribute is used to specify the number of characters offset for alignment based on the char attribute.

Note: The <tfoot> tag also supports the Global Attributes and Event Attributes in HTML.

Example: In this example, we will see how to implement the above tag in HTML.

Comment
Article Tags: