CSS 3 Module <== Test # ==>
W3C Selectors 48 of 182
Testing Date Revision
:first-of-type pseudo-class (ID #34) 2001-07-11 1.0
This div contains 3 addresses:
A first address that should have a green background
A second address with normal background
A third address with normal background
.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>