<?xml version="1.0" encoding="utf-8"?>

The <td> tag

The <td> tag

Table cells can contain 2 types of data: header information and regular data. This distinction is important because it enables browsers to distinctly render them, even if you don't specifically define table style.

We use the <td> tag (short for table data) to set cells with regular data. This tag is always nested inside the <tr> tag.[1] In this example, the second row contains 4 cells of data with the following information:

• Angel Herwitz

• 34

• $24.000

• $9.000

The code for this row would look like this:

<tr>

<td>Angel Herwitz</td>

<td>34</td>

<td>$24.000</td>

<td>$9.000</td>

</tr>

Improve your UX & Product skills with interactive courses that actually work