<tfoot> Tag in HTML 5

In this article I am going to explain about <tfoot> tag in Html 5
  • 1762

Definition

The <tfoot>  tag use for defined table footer. its mainly used in large table for defined table footer. <tfoot> tag must be in <table> tag.

Browser that supports <tfoot> tag

 Internet explorer, Mozilla firefox, Google chrome, Opera and Safari browsers.

Lets take an example of <tfoot> tag

<html>

<head>

    <table border="1">

        <thead>

            <tr>

                <th>

                    Name

                </th>

                <th>

                    Salary

                </th>

            </tr>

        </thead>

        <tfoot>

            <tr>

                <td>

                    <h4>

                        Sum</h4>

                </td>

                <td>

                    <h4>

                        $12000</h4>

                </td>

            </tr>

        </tfoot>

        <tbody>

            <tr>

                <td>

                    prabhakar

                </td>

                <td>

                    $5000

                </td>

            </tr>

            <tr>

                <td>

                    Ajay

                </td>

                <td>

                    $7000

                </td>

            </tr>

        </tbody>

    </table>

</head>

</html> 

Output

tfoot.jpg

Further Readings

You may read more about HTML 5 Tags:  here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2020 DotNetHeaven. All rights reserved.