web api instance method
HTMLTableElement: createTFoot() method
The createTFoot() method of
HTMLTableElement objects returns the <tfoot> element
associated with a given <table>. If no footer exists in the table, this
method creates it, and then returns it.
[!NOTE] If no footer exists,
createTFoot()inserts a new footer directly into the table. The footer does not need to be added separately as would be the case ifcreateElement()had been used to create the new<tfoot>element.
Syntax
createTFoot()
Parameters
None.
Return value
Examples
let myFoot = myTable.createTFoot();
// Now this should be true: myFoot === myTable.tFoot
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.