Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Table createTFoot() method

Table createTFoot() method

Table Object Reference 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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the createTFoot() method


Example

Example

Create and delete a tfoot element:

Runoob Tutorial(runoob.com)

    

        

        

    

    

        

        

    

cell 1 cell 2
cell 3 cell 4

Try it »


Table Object Reference Table object