1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Introduction to Tables (caption-side)</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="flags" content="HTMLonly">
8 <meta name="assert" content="'caption-side' can be set on a table caption (example from section 17.1).">
9 <style type="text/css">
10 caption
11 {
12 color: blue;
13 caption-side: top;
14 }
15 td
16 {
17 border: solid black;
18 }
19 th
20 {
21 border: solid black;
22 }
23 </style>
24 </head>
25 <body>
26 <p>Test passes if blue text (with the words 'This is a simple 3x3 table') appears above the three-by-three grid below.</p>
27 <table>
28 <caption>This is a simple 3x3 table</caption>
29 <tr id="row1">
30 <th>Header 1</th>
31 <td>Cell 1</td>
32 <td>Cell 2</td>
33 </tr>
34 <tr id="row2">
35 <th>Header 2</th>
36 <td>Cell 3</td>
37 <td>Cell 4</td>
38 </tr>
39 <tr id="row3">
40 <th>Header 3</th>
41 <td>Cell 5</td>
42 <td>Cell 6</td>
43 </tr>
44 </table>
45 </body>
46 </html>