tfoot

FilterElements

<tfoot> ... </tfoot>

Defines a table footer. It is one of the “row group” elements. The tfoot element must appear before the tbody within the table element. A tfoot element must contain at least one row (tr).

"Row group" elements (tbody, thead, and tfoot) could speed table display and provide a mechanism for scrolling the body of a table independently of its head and foot. Row groups could also be useful for printing long tables for which the head information could be printed on each page. The char and charoff attributes are not well supported.

Start/End Tags

HTML 4.01: Required/Optional;
XHTML: Required/Required;
HTML5: Optional/Optional

Specifications

  • HTML 4.01
  • HTML5

align=

Values: left | right | center | justify | char
Not in HTML5. Specifies the horizontal alignment of text in a cell or cells. The default value is left. The align attribute as it applies to table cell content was not deprecated in HTML 4.01/XHTML but has been removed from HTML5 in favor of style sheet controls.

char=

Values: character
Not in HTML5. Specifies a character along which the cell contents will be aligned when align is set to char. The default character is a decimal point (language-appropriate). This attribute is generally not supported.

charoff=

Values: length
Not in HTML5. Specifies the offset distance to the first alignment character on each line. This attribute is generally not supported.

valign=

Values: top | middle | bottom | baseline
Not in HTML5. Specifies the vertical alignment of text in the cells of a column.

See table.

Rendered Example

tfoot organizes table rows. It may appear as a static footer at bottom of every screen for tables that scroll.