120834-2a.html (317B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <style> 5 span { color: red } 6 :checked + span { color: green } 7 input { display: none } 8 </style> 9 10 <body> 11 <input type="checkbox" checked="checked" id="foo"><span>There should be no red</span> 12 <input type="radio" checked="checked" id="foo"><span>There should be no red</span> 13 </body> 14 </html>