tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

table-intro-example-003.xht (1684B)


      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: Introduction to Tables (border-collapse, border)</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#tables-intro" />
      7         <meta name="assert" content="'border-collapse' and 'border' can be set on table elements (example from section 17.1)." />
      8         <style type="text/css">
      9             table
     10             {
     11                 border-collapse: collapse;
     12             }
     13             tr#row1
     14             {
     15                 border: 3px solid blue;
     16             }
     17             tr#row2
     18             {
     19                 border: 1px solid black;
     20             }
     21             tr#row3
     22             {
     23                 border: 1px solid black;
     24             }
     25         </style>
     26     </head>
     27     <body>
     28         <p>Test passes if the box below is separated into three horizontal rows, and the top one has a blue border that is thicker than the borders of the other rows.</p>
     29         <table>
     30             <caption>This is a simple 3x3 table</caption>
     31             <tr id="row1">
     32                 <th>Header 1</th>
     33                 <td>Cell 1</td>
     34                 <td>Cell 2</td>
     35             </tr>
     36             <tr id="row2">
     37                 <th>Header 2</th>
     38                 <td>Cell 3</td>
     39                 <td>Cell 4</td>
     40             </tr>
     41             <tr id="row3">
     42                 <th>Header 3</th>
     43                 <td>Cell 5</td>
     44                 <td>Cell 6</td>
     45             </tr>
     46         </table>
     47     </body>
     48  </html>