Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> table { width: 60%; margin: 30px auto; border-collapse: collapse; } thead { background-color: #8ebf42; color: #fff; } tbody { background-color: #f3ebeb; } tfoot { background-color: #ccc7c7; } th, td { padding: 10px; border: 1px solid #666666; } </style> </head> <body> <table> <thead> <tr> <th>Month</th> <th>Savings</th> </tr> </thead> <tbody> <tr> <td>January</td> <td>1500</td> </tr> <tr> <td>February</td> <td>1000</td> </tr> </tbody> <tfoot> <tr> <td>Total</td> <td>2500</td> </tr> </tfoot> </table> </body> </html>