createTFoot

The createTFoot() method of HTMLTableElement objects returns the tfoot element associated with a given table.

MDN Reference