HTML_5_Table
Table
HTML
tables allow web developers to arrange data into rows and columns.
An
HTML table is created using the <table> tag.
An
HTML table consists of one <table> element and one or more <tr>,
<th>,
and <td> elements.
Each
<tr> represents a row, and within each row, <th> and <td> tags represent
the table columns.
<table>
- defines a table
<tr>
- defines a row in a table
<td>
- defines a cell/column in a table
<th>
- defines a header cell/column in a table
<thead> - groups the
header contents in a table
<tbody> - groups the body
contents in a table
<tfoot> - groups the
footer content in a table
Start and end of a table
<table>
... </table>
Start and end of a row
<tr> ...
</tr>
Start and end of a cell in a row
<td> ...
</td>
<table>
<tr>
<td>One One</td>
<td>One Two</td>
<td>One Three</td>
</tr>
<tr>
<td>Two One</td>
<td>Two Two</td>
<td>Two Three</td>
</tr>
<tr>
<td>Three One</td>
<td>Three Two</td>
<td>Three Three</td>
</tr>
</table>
Comments
Post a Comment