<!DOCTYPE html> <html> <head> <style> span {color: green} </style> </head> <body> <div> <input id="one" checked="checked"/> <span>Should be no red </span> </div> <div> <input id="one" checked="checked"/> <span>Should be no red </span> </div> </body> </html>