Daniel Glazman Ian Hickson p.test a { background-color : red } p.test *:visited { background-color : lime }

You should see a green background assigned by the anchor. (Note: You must have visited http://www.w3.org/ for this test to be valid.)