Table, Tr, Th, Td Tags

Tables in HTML are created using a combination of elements to define rows and cells.

  • <table>: Wraps the entire table
  • <tr>: Table row
  • <th>: Table header cell
  • <td>: Table data cell
<table>
  <tr>
    <th>Name</th>
    <th>Age</th>
  </tr>
  <tr>
    <td>Alice</td>
    <td>24</td>
  </tr>
</table>
← PrevNext →