Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

HTML | DOM Table tFoot Property

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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.


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

Below program illustrates the Table TFoot() property : 
Example: Alerting the innerHTML of <tfoot> element. 


<!DOCTYPE html>
    <title>Table tFoot Property in HTML
        td {
            border: 1px solid green;
        h1 {
            color: green;
        h2 {
            font-family: Impact;
        body {
            text-align: center;
    <h2>Table tFoot Property</h2>
<p>To return the innerHTML of the tfoot
      element for the table, double-click the
      "Return Footer" button.</p>
    <table id="Courses" align="center">
            <td>Fork Java</td>
            <td>Fork Python</td>
            <td>Sudo Placement</td>
    <button ondblclick="tfoot()">
      Return Footer
        function tfoot() {
            // returning reference of tFoot
            // using alert

Before clicking the button: 

After clicking the button: 

Supported Browsers: 

  • Google Chrome 6.0
  • Internet Explorer 10.0
  • Firefox 16.0
  • Apple Safari 5.0
  • Opera 10.6Opera


My Personal Notes arrow_drop_up
Last Updated : 08 Sep, 2021
Like Article
Save Article
Similar Reads
Related Tutorials