<td> HTML Tag

In this article we will discuss how to use the td tag in HTML.
  • 1458

The <td> tag stands for table data. It is used for specifying a cell within the table. It comes under table row tag which further comes under table tag.

HTML Code:

<html>

<head>

    <title></title>

</head>

<body>

    <table border="1">

        <tr>

            <th>

                Firstname

            </th>

            <th>

                Last Name

            </th>

        </tr>

        <tr>

            <td>

                Rahul

            </td>

            <td>

                Sharma

            </td>

        </tr>

        <tr>

            <td>

                Amitabh

            </td>

            <td>

                Bacchan

            </td>

        </tr>

        <tr>

            <td>

                Sharukh

            </td>

            <td>

                Khan

            </td>

        </tr>

    </table>

</body>

</html>

 

Output:

tttttttttttttttttttttt.jpg
Ask Your Question 

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

Programming Answers here

© 2019 DotNetHeaven. All rights reserved.