CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 16 of 153 of the static tests category | |
Testing | Date | Revision |
More than one class selector (ID #14c) | 2002-12-06 | 1.0 |
This line should be green.
p { background: red; color: yellow; } p.t1.t2 { background: green; color: white; } div { background: green; color: white; } div.t1 { background: red; color: yellow; } address { background: red; color: yellow; } address.t5.t5 { background: green; color: white; }
<p class="t1 t2">This line should be green.</p> <div class="t3">This line should be green.</div> <address class="t4 t5 t6">This line should be green.</address>