createTHead

The createTHead() method of associated with a given table.

MDN Reference