CSS 3 Module <== Test # ==>
W3C Selectors 28 of 153 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"> <span>Everything in this paragraph should have a green background</span></p>