← Back to Lessons

Creating Tables in HTML

Basic Table Structure

Use <table>, <tr>, <th>, and <td> for tables.

<table>
  <tr>
    <th>Name</th>
    <th>Age</th>
  </tr>
  <tr>
    <td>John</td>
    <td>25</td>
  </tr>
</table>

Use Cases

Tables are useful for presenting structured data like schedules, prices, or statistics.