<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>:hover pseudo-class</title> <style type="text/css">div:hover > p:first-child { background-color : lime }</style> <link rel="first" href="css3-modsel-1.html" title="Groups of selectors"> <link rel="prev" href="css3-modsel-18.html" title=":hover pseudo-class"> <link rel="next" href="css3-modsel-19.html" title=":active pseudo-class"> <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked"> <link rel="up" href="./index.html"> <link rel="top" href="../../index.html"> </head> <body> <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> </body> </html>