HTML | DOM Table tHead Property Last Updated : 20 Nov, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report The Table tHead property is used for returning a reference to the <thead> element of a table. The <thead> element is used for grouping the header content in an HTML table. It returns NULL if the <thead> element is not defined.Syntax tableObject.tHeadReturn Value : A reference to the <thead> element of the table, or null if it is not defined Below program illustrates the Table THead() property : Example: Alerting the innerHTML of <thead> element. html <!DOCTYPE html> <html> <head> <title>Table tHead Property in HTML </title> <style> table, td { border: 1px solid green; } h1 { color: green; } h2 { font-family: Impact; } body { text-align: center; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>Table tHead Property</h2> <p>To return the innerHTML of the thead element for the table, double-click the "Return Header" button.</p> <table id="Courses" align="center"> <thead> <tr> <th>Subject</th> <th>Courses</th> </tr> </thead> <tr> <td>Java</td> <td>Fork Java</td> </tr> <tr> <td>Python</td> <td>Fork Python</td> </tr> <tr> <td>Placements</td> <td>Sudo Placement</td> </tr> </table> <br> <button ondblclick="thead()"> Return Header </button> <script> function thead() { // returning reference of tHead // using alert. alert(document.getElementById( "Courses").tHead.innerHTML); } </script> </body> </html> Output:Before clicking the button: After clicking the button: Supported Browsers: Apple SafariInternet ExplorerFirefoxGoogle ChromeOpera Comment More infoAdvertise with us Next Article HTML | DOM Table tHead Property S Shubrodeep Banerjee Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML | DOM Table width Property The Table width property in HTML DOM is used to set or return the value of the width attribute of a table. Note: This property is not supported by HTML5. Syntax: It returns the width property of a table.tableObject.width;It is used to set the width property of a table.tableObject.width ="pixels"; At 2 min read HTML | DOM TableHeader abbr Property The DOM TableHeader abbr Property is used to sets or returns the value of the abbr attribute. The abbr attribute is used to specify the shorter version of the content in a header cell. It has no visual effect on the ordinary web browser and can be used by screen readers. Syntax: It returns the abbr 2 min read HTML | DOM Table tFoot Property The Table tFoot property is used for returning a reference to the <tfoot> element of a table. The <tfoot> element is used for grouping the footer content in an HTML table. It returns NULL if the <tfoot> element is not defined.Syntax tableObject.tFootReturn Value: A reference to the 2 min read HTML DOM TableHeader colSpan Property The HTML DOM TableHeader colSpan property is used to set or return the value of the colspan attribute. The colspan attribute defines the number of columns that a header cell should span. Syntax: It returns the colSpan property.tableheaderObject.colSpanIt is used to set the colSpan property.tablehead 2 min read HTML DOM TableHeader headers Property The HTML DOM TableHeader headers property is used to set or return the value of the headers attribute. The headerâs attribute is used to specify the table cell containing header information for the current header cell. Syntax It returns the header's property.tableheaderObject.headersIt is used to se 2 min read Like