Table createTFoot() method
Table object
Definition and Usage
The createTFoot() method is used to get or create an element in a table.
**Note:** If a tfoot element already exists in the table, the createTFoot() method returns the existing value and will not create a new element.
**Note:** To remove the tfoot element from a table, use deleteTFoot() method.
Syntax
tableObject.createTFoot()
Browser support





All major browsers support the createTFoot() method
Example
Example
Create and delete a tfoot element:
| cell 1 | cell 2 |
| cell 3 | cell 4 |
Try it »
Table object