CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 17 of 146 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>