Creating Tables in HTML

Learn how to create tables using the <table> tag.

Back to Home

Step 1: Learn the Basics

HTML tables are created using the following structure:

<table>
    <tr>
        <th>Header 1</th>
        <th>Header 2</th>
    </tr>
    <tr>
        <td>Row 1, Column 1</td>
        <td>Row 1, Column 2</td>
    </tr>
</table>

Step 2: Try It Yourself

Create a table with **two rows** and **two columns**. The first row should contain **headers**.