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