table html explained code example
Example 1: table html tages
<table>
<tr> <!-- This is the first row -->
<th>This is the heading</th>
<th>Next heading to the right</th>
</tr>
<tr> <!-- This is the second row -->
<td>This is where the table data goes</td>
<td>This is the second columns data</td>
</tr>
</table>
Example 2: html tables
<table></table>
<td></td> <!-- td is a table cell-->
<tr></tr> <!-- tr is a table row-->
<th></th> <!-- th is the table header -->
<thead></thead><tbody></tbody><tfoot></tfoot> <!-- table semantic -->
<tr rowspan="2"></tr><!-- Span a row -->
<tr colspan="2"></tr><!-- Span a column -->