<table> HTML Tag

In this article we will discuss about how to use the table tag in HTML.
  • 2595

The table tag is used to create a table in HTML document. Table is just a collection of rows and columns and to draw the table border, we have to use border property of table.

HTML Code:

<html>

<head>

    <title></title>

</head>

<body>

    <table border="1" bgcolor="yellow">

        <tr>

            <td>

                Color

            </td>

            <td>

                Machine

            </td>

        </tr>

        <tr>

            <td style="color: Pink">

                Pink

            </td>

            <td>

                Computer

            </td>

        </tr>

        <tr>

            <td style="color: red">

                Red

            </td>

            <td>

                Watching Machine

            </td>

        </tr>

        <tr>

            <td style="color: Blue">

                Blue

            </td>

            <td>

                Television

            </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

© 2020 DotNetHeaven. All rights reserved.