The style declarations contained within this page:
P {color: green ! important;} P {color: red;} P#id1 {color: purple;}
This sentence should be green, because the declaration marked important should override any other normal declaration for the same element, even if it occurs later in the stylesheet.
[id1] This sentence should also be green, even though it has an ID of id1, which would ordinarily make it purple. This is because declarations marked important have more weight than normal declarations given in a STYLE attribute.
This sentence should also be green, even though it has a STYLE attribute declaring it to be red. This is because declarations marked important have more weight than normal declarations given in a STYLE attribute.