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 {color: red;}
10 #test1 {color: green;}
11 #test2 {color: green;}
12 p#test3 {color: green;}
13 </style>
14 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#id-selectors" title="5.9 ID selectors">
15 </head>
16 <body>
17 <p id="test1"> This line should be green. </p>
18 <p id="test2"> This line should be green. </p>
19 <p id="test3"> This line should be green. </p>
20 </body>
21 </html>