CSS 3 Module <== Test # ==>
W3C Selectors 3 of 19 of the interactive tests category
Testing Date Revision
:hover pseudo-class (ID #18b) 2001-11-03 1.1

NOTE: User interaction is required for this test.

The background color of this paragraph should turn to green when the mouse pointer hovers over any of the following:
This text.

This text.

This text.
This text.
This text.

This text.

...and anything else between the top of the first paragraph and the bottom of this paragraph.

div:hover > p:first-child { background-color : lime }
 <div>
  <p>The background color of this paragraph should turn to green when the mouse pointer hovers over any of the following:<br><strong>This text.</strong></p>
  <p>This text.</p>
  <table><tr><td><table><tr><td><dl><dt>This text.</dt><dd>This text.</dd></dl></td></tr></table></td></tr><tr><td>This text.</td></tr></table>
  <p><sub>This text.</sub></p>
  <p>...and anything else between the top of the first paragraph and the bottom of this paragraph.</p>
 </div>