style-attr-cascade-002.xht (890B)
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: style attribute (normal vs. important)</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/cascade/style/002.xml"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#important-rules" /> 9 <link rel="help" href="http://www.w3.org/TR/css-style-attr/#interpret"/> 10 <link rel="match" href="reference/ref-green.html" /> 11 </head> 12 <body> 13 <!--It has a style attribute with "color: red" preceeded by an important "color: green".--> 14 <div style="color: green ! important; color: red">This should be green.</div> 15 </body> 16 </html>