HTML <tfoot> Tag


The <tfoot> HTML element represents the "footer" of the table and is displayed at the bottom of the table. Designed for information about table columns.
The <thead>, <tfoot> and <tbody> sections must contain the same number of columns and at least one line, which is defined through the <tr> element.
Only one <tfoot> element is allowed in a table.


Permitted Parents
A <table> element. The <tfoot> must appear after any <caption>, <colgroup>, <thead>, <tbody>, or <tr> element. Note that this is the requirement as of HTML5.
Start/End Tags
Start tag: required, End tag: required


<table border = "1">
<tr><td colspan="2">Table Header (thead)</td></tr>
<tr><td colspan="2">Table Footer (tfoot)</td></tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
<td>Cell 5</td>
<td>Cell 6</td>


Attribute Definition
align Visual alignment.
Possible values:
  • left
  • center
  • right
  • justify
  • char
valign Vertical alignment.
Possible values:
  • top
  • middle
  • bottom
  • baseline
char Specifies a character to use for aligning text to. Used when align=char.
charoff Specifies an alignment offset (either in pixels or percentage value) against the first character as specified with the char attribute. Used when align=char

Global Attributes

The <tfoot> tag also supports the Global Attributes in HTML5

Event Attributes

The <tfoot> tag also supports the Event Attributes in HTML5

Browser Support

Explorer Edge Chrome Firefox Opera Safari
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung

Last updated by CSSPortal on: 6th December 2019