css3-modsel-181.xml (1219B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>Case sensitivity</title> 5 <style type="text/css"><![CDATA[ 6 .cs { color: green; } 7 .cs P { background: red; color: yellow; } 8 .cs .a { background: red; color: yellow; } 9 .cs .span1 span { background: red; color: yellow; } 10 .cs .span2 { color: red; } 11 .cs .span2 SPAN { color: green; } 12 .cs .span2 span { background: red; color: yellow; } 13 .ci { color: red; } 14 .ci P { background: green; color: white; } 15 .ci .a { background: green; color: white; } 16 .ci .span1 span { background: green; color: white; } 17 .ci .span2 SPAN { background: green; color: white; } 18 ]]></style> 19 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 20 <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found --> 21 </head> 22 <body> 23 <div> 24 25 <div class="cs"> 26 <p>This line should be green.</p> 27 <p class="A">This line should be green.</p> 28 <p class="span1"><SPAN>This line should be green.</SPAN></p> 29 <p class="span2"><SPAN>This line should be green.</SPAN></p> 30 </div> 31 32 33 </div> 34 </body> 35 </html>