Table tHead Attribute

Definition and Usage

tHead The attribute returns a reference to the table's <thead> element.

The <thead> element is used to group the header content of an HTML table.

Tip:The tFoot attribute returns a reference to the table's <tfoot> element.

See also:

HTML Reference Manual:Tag <thead> do HTML

Example

Output the innerHTML of <thead>:

alert(document.getElementById("myTable").tHead.innerHTML);

Experimente você mesmo

Sintaxe

tableObject.tHead

Detalhes técnicos

Retorno: Referência para o elemento <thead> da tabela; se não estiver definido,则为 null.

Suporte ao navegador

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Suporte Suporte Suporte Suporte Suporte