Example:
HTML
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td { border: 1px solid black;
}
</style>
</head>
<body>
<h1>The thead, tbody, and tfoot elements</h1>
<table> <thead> <tr> <th>Month</th> <th>Savings</th> </tr> </thead> <tbody> <tr> <td>January</td> <td>$100</td> </tr> <tr> <td>February</td> <td>$80</td> </tr> </tbody> <tfoot> <tr> <td>Sum</td> <td>$180</td> </tr> </tfoot>
</table>
</body>
</html>
How to create HTML <tbody> Tag | HTML Tag |
How to set Style <thead>, <tbody>, and <tfoot> with CSS | HTML Tag |
How to align content inside <tbody> (with CSS) | HTML Tag |
How to vertical align content inside <tbody> (with CSS) | HTML Tag |
How to set Default CSS Settings on HTML <tbody> Tag | HTML Tag |
Type
: |
html |
Category
: |
Web Tutorial |
Sub Category
: |
HTML Tag |
Uploaded by
: |
Admin |