CSS 3 Module <== Test # ==>
W3C Selectors 30 of 276 of the static tests category
Testing Date Revision
:checked pseudo-class (ID #25) 2004-05-29 1.1

Everything in this paragraph should have a green background

input, span { background-color : red }
input:checked, input:checked + span { background-color : lime}
<p>
<input type="checkbox" checked="checked"></input> <span>Everything in this paragraph should have a green background</span></p>