CSS 3 Module <== Test # ==>
W3C Selectors 104 of 182
Testing Date Revision
NEGATED :last-of-type pseudo-class (ID #80) 2001-07-11 1.0
A first address that should have a green background
A second address that should have a green background
A third address with normal background
This div should have three addresses above it.
.red { background-color : red }
address { margin-bottom : 1em ; margin-left : 1em }
address:not(:last-of-type) { background-color : lime }
<div>
<address class="red">A first address that should have a green background</address>
<address class="red">A second address that should have a green background</address>
<address>A third address with normal background</address>
This div should have three addresses above it.</div>