HTML table is used to display tabular data. It is always a good practice to use table when the data structure is tabular. Following is an example of a HTML table:
<table border="1" cellpadding="10">
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Joe Smith</td>
<td>29</td>
</tr>
<tr>
<td>Jennifer Lawrence</td>
<td>22</td>
</tr>
</table>
<table border="1" cellpadding="10">
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Joe Smith</td>
<td>29</td>
</tr>
<tr>
<td>Jennifer Lawrence</td>
<td>22</td>
</tr>
</table>
No comments:
Post a Comment