CSS 3 Module <== Test # ==>
W3C Selectors 36 of 182
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>