basic-html-table-001.xht (1664B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: HTML table with every table element</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-display" /> 7 <link rel="help" href="http://www.w3.org/TR/REC-html40/struct/tables.html#h-11.2" /> 8 <meta name="assert" content="HTML table elements are supported." /> 9 <style type="text/css"> 10 caption, td, th 11 { 12 background: black; 13 } 14 </style> 15 </head> 16 <body> 17 <p>Test passes if there is a solid bar on top of a three-by-three grid of boxes below.</p> 18 <table border="1"> 19 <caption>X</caption> 20 <colgroup> 21 <col /> 22 <col /> 23 </colgroup> 24 <colgroup> 25 <col /> 26 </colgroup> 27 <thead> 28 <tr> 29 <th>XXXXX</th> 30 <th>XXXXX</th> 31 <th>XXXXX</th> 32 </tr> 33 </thead> 34 <tfoot> 35 <tr> 36 <td>XXXXX</td> 37 <td>XXXXX</td> 38 <td>XXXXX</td> 39 </tr> 40 </tfoot> 41 <tbody> 42 <tr> 43 <td>XXXXX</td> 44 <td>XXXXX</td> 45 <td>XXXXX</td> 46 </tr> 47 </tbody> 48 </table> 49 </body> 50 </html>