ident-008.xht (790B)
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: Invalid Identifiers (starting with digit) as Classes and IDs</title> 5 <link rel="author" title="L. David Baron" href="https://dbaron.org/"/> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#characters"/> 7 <link rel="match" href="ident-000-ref.xht"/> 8 <meta name="flags" content="invalid"/> 9 <style type="text/css"> 10 11 .one { color: green; background: white; } 12 .6ident, .one { color: red; } 13 14 .two { color: green; background: white; } 15 #6ident, .two { color: red; } 16 17 </style> 18 </head> 19 <body> 20 21 <p class="one">This should be green.</p> 22 <p class="two">This should be green.</p> 23 24 </body> 25 </html>