How to make a table in HTML

Learn how to create a table in HTML in this quick and easy tutorial.

First, create the main table element:

<table>
</table>

Next, add the header row to the table:

<table>
	<thead>
		<tr>
			<th>First Name</td>
			<th>Last Name</td>
		</tr>
	</thead>
</table>

Finally, add the data rows to the table:

<table>
	<thead>
		<tr>
			<th>First Name</td>
			<th>Last Name</td>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>Amy</td>
			<td>Smith</td>
		</tr>
		<tr>
			<td>Kenneth</td>
			<td>Smith</td>
		</tr>
	</tbody>
</table>

That’s all there is to it! You should now see a table on your web page.


Love our articles? HostM offers professional and helpful web hosting services with unlimited features and renewal rates that actually match our advertised rates.