Although<div> and <span> have taken over table. The <table> tag was used as a container for HTML table data, which is used to mark up tabular data.
The syntax is:
<table>
<tr>
<td> cell 1</td>
<td> cell 2</td>
<td> cell 3</td>
</tr>
<tr>
<td> cell 1</td>
<td> cell 2</td>
<td> cell 3</td>
</tr>
</table>
- table: the main container of all the cells
- tr: defines a row of cells
- td: defines a new cell
No comments:
Post a Comment