Full width home advertisement

How To

Science

Post Page Advertisement [Top]


How to Use Table Header, Body, and Footer.
The three tag elements for sorting out the head, body, and foot of a table are:

1. <thead> - used to construct a separate table header.

2. <tbody> - used to specify the main body of the table.

3. <tfoot> - used to construct a separate table footer.

Example

<!DOCTYPE html>

<html>

<head>

<title>Scholars HTML Table</title>

</head>

<body>

<table border="2" width="90%">

<thead>

<tr>

<td colspan="6">The head of the table</td>

</tr>

</thead>

<tbody>

<tr>

<td>Cell 1</td>

<td>Cell 2</td>

<td>Cell 3</td>

<td>Cell 4</td>

</tr>

</tbody>

<tfoot>

<tr>

<td colspan="4">The foot of the table</td>

</tr>

</tfoot>

</table>

</body>

</html>

No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib