border-collapse-005-ref.html (756B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8" /> 5 <title>CSS (Tables) Reference File</title> 6 <link rel="author" title="Chris Rebert" href="http://chrisrebert.com" /> 7 <style> 8 table { 9 border-collapse: collapse; 10 border: 2px solid blue; 11 } 12 th { 13 font-weight: normal; 14 text-align: left; 15 } 16 </style> 17 </head> 18 <body> 19 <table> 20 <tbody> 21 <tr> 22 <td>One</td> 23 <td>Two</td> 24 </tr> 25 </tbody> 26 <tfoot> 27 <tr> 28 <td>Three</td> 29 <td>Four</td> 30 </tr> 31 </tfoot> 32 </table> 33 <p>Test passes if there is a solid blue border around the <strong>entire perimeter</strong> of the table.</p> 34 </body> 35 </html>