<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>TFOOT Demo</title> <style type="text/css"> td { color:yellow; } thead th { color:red; } tfoot th { color:blue; } tbody td { color:green; } </style> </head> <body> <table> <thead onclick="alert('foo');"> <tr> <th>H</th><th>E</th><th>A</th><th>D</th> </tr> </thead> <tfoot> <tr> <th>F</th><th>O</th><th>O</th><th>T</th> </tr> </tfoot> <tbody> <tr> <td>b</td><td>o</td><td>d</td><td>y</td> </tr> </tbody> </table> </body> </html>