In HTML, a table comprises cells arranged within rows and columns.
Example
A simple HTML table:
<table> <tr> <th>Company</th> <th>Contact</th> <th>Country</th> </tr> <tr> <td>Alfreds Futterkiste</td> <td>Maria Anders</td> <td>Germany</td> </tr> <tr> <td>Centro comercial Moctezuma</td> <td>Francisco Chang</td> <td>Mexico</td> </tr> </table> |
Every table cell is delineated by an opening <td> tag and a closing </td> tag.
“td” represents table data.
The content enclosed between <td> and </td> comprises the contents of the table cell.
Example
<table> <tr> <td>Emil</td> <td>Tobias</td> <td>Linus</td> </tr> </table> |
Note: A table cell has the flexibility to encompass various HTML elements, including text, images, lists, links, other tables, and more. |