<tfoot> HTML Tag

In this article we will discuss about how to use tfoot Tag in HTML.
  • 1321

The HTML <tfoot> tag is used for adding a footer to a table. The content of the tfoot appears at the bottom of the table and must appear before the tbody

HTML Code:

<html>

<head>

    <title>This is my first web page</title>

</head>

<body>

    <table border="1">

        <tfoot>

            <tr>

                <td>

                    ft1

                </td>

                <td>

                    ft2

                </td>

                <td>

                    ft3

                </td>

            </tr>

        </tfoot>

        <tbody>

            <tr>

                <td>

                    Ramesh

                </td>

                <td>

                    Mohan

                </td>

                <td>

                    Ram

                </td>

            </tr>

            <tr>

                <td>

                    Sita

                </td>

                <td>

                    Gita

                </td>

                <td>

                    Rita

                </td>

            </tr>

        </tbody>

    </table>

</body>

</html>

 

Output:
tableoutput.jpg 


Ask Your Question 

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

 

© 2020 DotNetHeaven. All rights reserved.