1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
4 <title>:hover pseudo-class</title>
5 <style type="text/css"><![CDATA[p:hover { background-color : lime }
6 a:hover { background-color : lime }
8 tr:hover { background-color : green }
9 td:hover { background-color : lime }
11 table { border-spacing: 5px; }]]></style>
12 <link rel="first" href="css3-modsel-1.xml" title="Groups of selectors"/>
13 <link rel="prev" href="css3-modsel-17.xml" title=":visited pseudo-class"/>
14 <link rel="next" href="css3-modsel-18a.xml" title=":hover pseudo-class on links"/>
15 <link rel="last" href="css3-modsel-d4.xml" title="Dynamic updating of :first-child and :last-child"/>
16 <link rel="up" href="./index.html"/>
17 <link rel="top" href="../../index.html"/>
20 <p>The background color of this paragraph should turn to green when
21 the mouse pointer hovers either its text (<strong>here</strong>) or its whitespace background, <strong>here</strong>:</p>
22 <address>The background color of <a href="#foo">this anchor (<strong>here</strong>)</a> should turn to green when the pointing device hovers over it.</address>
37 <td>them (<strong>here</strong>).</td>
48 <td>pointing device</td>
52 <td>cells <strong>there</strong>:</td>
53 <td></td> <!-- remove this cell to make an evil test; row should still go green, but cell should not -->
56 <td>And <strong>here</strong>:</td>
58 <td>(blank cells).</td>