Easy Tutorial
❮ Obj History Event Clientx ❯

Table createTFoot() Method


Definition and Usage

The createTFoot() method is used to get or create a <tfoot> element in a table.

Note: If the tfoot element already exists in the table, the createTFoot() method returns the existing element and does not create a new <tfoot> element.

Tip: To remove the tfoot element from a table, use the deleteTFoot() method.

Syntax


Browser Support

All major browsers support the createTFoot() method.


Example

Creating and deleting a tfoot element:


❮ Obj History Event Clientx ❯