c15-ids-000.xht (965B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 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 <link rel="match" href="c12-grouping-000-ref.xht" /> 9 10 <style type="text/css"><![CDATA[ 11 body {color: red;} 12 #test1 {color: green;} 13 #test2 {color: green;} 14 p#test3 {color: green;} 15 ]]></style> 16 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#id-selectors" title="5.9 ID selectors"/> 17 </head> 18 <body> 19 <p id="test1"> This sentence should be green. </p> 20 <p id="test2"> This sentence should be green. </p> 21 <p id="test3"> This sentence should be green. </p> 22 </body> 23 </html>