HTML: The Markup Language Reference

tfoottable footer row group # T

The tfoot element represents the block of rows that consist of the column summaries (footers) for its parent table element.

Permitted contents #

zero or more tr elements

Permitted attributes #

global attributes
Any attributes permitted globally.

Additional constraints and admonitions #

Tag omission #

A tfoot element must have a start tag.

A tfoot element’s end tag may be omitted if the tfoot element is immediately followed by a tbody element, or if there is no more content in the parent element.

Permitted parent elements #


Details #

Although previous versions of HTML only allowed the tfoot element to occur before any tbody or tr elements, but not after, the tfoot element is now also alternatively allowed to occur after any tbody or tr elements.

DOM interface #

interface HTMLTableSectionElement : HTMLElement {
  readonly attribute HTMLCollection rows;
  HTMLElement insertRow(in optional long index);
  void deleteRow(in long index);

Typical default display properties #

tfoot {
display: table-footer-group;
vertical-align: middle;
border-color: inherit; }