Table tFoot Attribute

Definition and Usage

tFoot The property returns a reference to the <tfoot> element of the table.

The <tfoot> element is used to group the footer content of the HTML table.

Tip:The tHead property returns a reference to the <thead> element of the table.

See also:

HTML Reference Manual:HTML <tfoot> Tag

Example

Output the innerHTML of <tfoot>:

alert(document.getElementById("myTable").tFoot.innerHTML);

Try It Yourself

Syntax

tableObject.tFoot

Technical Details

Return Value: Reference to the <tfoot> element of the table; if not defined, it is null.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support