CSS 3 Module <== Test # ==>
W3C Selectors 7 of 15 of the interactive tests category
Testing Date Revision
:focus pseudo-class (ID #20) 2001-11-03 1.1

NOTE: User interaction is required for this test.

The background color of anchors in this page should turn to green when they have the focus.

a:focus { background-color : lime }
<p>The background color of <a href="#foo">anchors</a>
  in this page should turn <a href="#foo">to green</a> when they have the
  <a href="#foo">focus</a>.</p>