CSS 3 Module <== Test # ==>
W3C Selectors 49 of 182
Testing Date Revision
:last-of-type pseudo-class (ID #35) 2001-11-12 1.1
A first address with normal background
A second address with normal background
A third address that should have a green background
This div contains 3 addresses above this sentence.
.red { background-color : red }
address { margin-bottom : 1em ; margin-left : 1em }
address:last-of-type { background-color : lime }
<div>
<address>A first address with normal background</address>
<address>A second address with normal background</address>
<address class="red">A third address that should have a green background</address>
This div contains 3 addresses above this sentence.</div>