CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 43 of 153 of the static tests category | |
Testing | Date | Revision |
:only-of-type pseudo-class (ID #37) | 2001-07-11 | 1.0 |
This paragraph should have normal background
But this address should have green backgroundThis paragraph should have normal background
.red { background-color : red } .t1 :only-of-type { background-color : lime }
<div class="t1"> <p>This paragraph should have normal background</p> <address class="red">But this address should have green background</address> <p>This paragraph should have normal background</p> </div>