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: ID as selector</title>
5 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#id-as-selector">
6 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
7 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
8 <style type="text/css">
9 body, span { color: green; }
10 p#test1a, p#test1b { color: red; }
11 ul#test2 { color: red; }
12 </style>
13 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#id-selectors" title="5.9 ID selectors">
14 </head>
15 <body>
16 <p id="test1a"> <span> This line should be green. </span> </p>
17 <pre id="test1b"> This line should be green. </pre>
18 <ul>
19 <li id="test2"> This line should be green. </li>
20 </ul>
21 </body>
22 </html>