HTML Tables
An HTML table is defined with a
<table>
tag.
Table rows are defined with
<tr>
tags.
Table headers are defined with
<th>
tags.
(bold and centered by default).
Table cells (data) are defined with
<td>
tags.Example
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
No comments:
Post a Comment