Table Data

Now that we have table rows, it's time to learn how to create table data. Table data is created using the td element (short for table data) and we write the actual data as the content of the td element.

<table>
	<tr>
		<td>Row 1 Column 1</td>
		<td>Row 1 Column 2</td>
	</tr>
</table>

In the example above, we created a table (table) with one row (tr) and two columns (td).

Similar to rows, when we want to add more columns, we create additional td elements as siblings.

In the background, we applied CSS to make the table more readable. You can learn more about CSS in the CSS course.

Instructions

In the second row, create two columns (using the td element). The first column should have the content 8/20/2023 and the second column should have the content 93.

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

3/7

Table Data | Start Coder