SyntaxStudy
Sign Up

<table>

tag

Represents tabular data — information presented in a two-dimensional table with rows and columns.

Syntax

<table> ... </table>

Example

html
<table>
    <thead>
        <tr>
            <th>Name</th>
            <th>Age</th>
            <th>City</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>Alice</td>
            <td>28</td>
            <td>London</td>
        </tr>
        <tr>
            <td>Bob</td>
            <td>34</td>
            <td>Paris</td>
        </tr>
    </tbody>
</table>