X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

Table tHead Property

Table Object Reference Table Object

Example

Alert the innerHTML of <thead>:

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

Try it yourself »


Definition and Usage

The tHead property returns a reference to the <thead> element of a table.

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

Tip: The tFoot property returns a reference to the <tfoot> element of a table.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The tHead property is supported in all major browsers.


Syntax

tableObject.tHead

Technical Details

Return Value: A reference to the <thead> element of the table, or null if it is not defined


Related Pages

HTML reference: HTML <thead> tag


Table Object Reference Table Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook