CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 40 of 152 of the static tests category | |
Testing | Date | Revision |
:first-of-type pseudo-class (ID #34) | 2001-07-11 | 1.0 |
.red { background-color : red } address { margin-bottom : 1em ; margin-left : 1em } address:first-of-type { background-color : lime }
<div>This div contains 3 addresses: <address class="red">A first address that should have a green background</address> <address>A second address with normal background</address> <address>A third address with normal background</address> </div>