HTML Tutorial
<td>:The <td> (table data) tag defines a cell in an HTML table. It contains the actual data displayed in the table.
<td>:<td>:<tr>
<td>Name</td>
<td>John</td>
</tr>
<tr>
<td>Age</td>
<td>30</td>
</tr>
This code creates a table with two rows and two columns:
╔══════╦══════╗
║ Name ║ John ║
╠══════╬══════╣
║ Age ║ 30 ║
╚══════╩══════╝
<td> Tag:Practical Example:
<table>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>John</td>
<td>30</td>
</tr>
<tr>
<td>Mary</td>
<td>25</td>
</tr>
</table>
This code creates a simple HTML table with data. The <th> tags represent the table headers, while the
aria-labelledby attribute to associate the <td> with its header<th> for each <td> to improve accessibility for screen readers