c15-ids-001.xht (1130B)
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="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-03-29 --> 9 <link rel="match" href="c15-ids-001-ref.xht" /> 10 11 <style type="text/css"><![CDATA[ 12 body, span { color: green; } 13 p#test1a, p#test1b { color: red; } 14 ul#test2 { color: red; } 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="test1a"> <span> This sentence should be green. </span> </p> 20 <pre id="test1b"> This sentence should be green. </pre> 21 <ul> 22 <li id="test2"> This sentence should be green. </li> 23 </ul> 24 </body> 25 </html>