Table Tag - <table>

This lesson discusses the Table <table> tag and its usage in web development.

This tag is used to create a table in the document. It contains a set of rows and columns that display data in a structured format.

<table border="1">
    <tr>
        <th>Name</th>
        <th>Age</th>
    </tr>
    <tr>
        <td>John</td>
        <td>25</td>
    </tr>
    <tr>
        <td>Jane</td>
        <td>30</td>
    </tr>
</table>

The code above shows an example of the <table> tag. This tag is used to create a table in the document, which contains a set of rows and columns that display data in a structured format. The <tr> tag is used to define a row in the table, while the <th> tag is used to define a header cell and the <td> tag is used to define a data cell. The border attribute is used to specify the border width of the table.