HTML Tables
For instance, if there is a header row it is written inside
<thead> tag.
Going ahead, the data rows are written inside the
<tbody> tag.
The table rows are writen inmside the
<tr> tag and the data
cell are written inside the <td> tag.
Example:
<table>
<thead>
<tr>
<th>Name</th>
<th>Gender</th>
</tr>
</thead>
<tbody>
<tr>
<td>Swara</td>
<td>Female</td>
</tr>
<tr>
<td>Arya</td>
<td>Female</td>
</tr>
</tbody>
</table>
Sample output for the above code is:
| Name | Gender |
|---|---|
| Swara | Female |
| Arya | Female |
Comments
Post a Comment