HTML Tables
Create a clean table using table, tr, th, td, and understand where tables should be used.
David Miller
November 24, 2025
3.3k131
Tables are used for data in rows and columns.
Example
<table border="1">
<tr>
<th>Ticket</th>
<th>Status</th>
</tr>
<tr>
<td>#1021</td>
<td>Open</td>
</tr>
<tr>
<td>#1022</td>
<td>Resolved</td>
</tr>
</table>
Preview
Ticket | Status
#1021 | Open
#1022 | Resolved
Important rule
Tables are for data, not for page layout.
#HTML#Beginner