<?xml-stylesheet href="../../../style/xhtml-full.css" type="text/css"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>:hover pseudo-class</title>
  <meta name="author" content="Daniel Glazman, Ian Hickson"/>
  <link rel="stylesheet" type="text/css" href="../../../style/xhtml-full.css"/> <!-- yes this means compliant UAs get to import this twice -->
  <style type="text/css">p:hover { background-color : lime }
a:hover { background-color : lime }

tr:hover { background-color : green }
td:hover { background-color : lime }

table { border-spacing: 5px; }</style>
  <link rel="next" href="css3-modsel-19.xml" title=":active pseudo-class"/>
  <link rel="last" href="css3-modsel-66.xml" title="NEGATED :target pseudo-class"/>
  <link rel="up" href="./index.html"/>
  <link rel="top" href="../../../index.html"/>
 </head>
 <body>
  <table class="testDescription">
   <tr>
    <th class="b">CSS 3 Module</th> <!-- XXX hard coded to say CSS 3 -->
    <th class="c" colspan="2">
     &lt;==
     Test #
     <a href="css3-modsel-19.xml" title=":active pseudo-class">==&gt;</a>
    </th>
   </tr>
   <tr>
    <td class="b">W3C Selectors</td>
    <td class="c" colspan="2">1 of 9 of the interactive tests category</td>
   </tr>
   <tr>
    <th class="b">Testing</th>
    <th class="a">Date</th>
    <th class="a">Revision</th>
   </tr>
   <tr>
    <td class="b">:hover pseudo-class (ID #18)</td>
    <td class="a">03-november-2001</td>
    <td class="a">1.1</td>
   </tr>
  </table>
  <div class="testSource">
   <div class="testText" xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b" xmlns:html="http://www.w3.org/1999/xhtml">
<p>The background color of this paragraph should turn to green when
   the mouse pointer hovers either its text (here) or its whitespace background, here:</p>
<address>The background color of <a href="#foo">this anchor (here)</a> should turn to green when the pointing device hovers over it.</address>
<table>
 <tbody>
  <tr>
   <td>The cells in</td>
   <td>this table</td>
   <td>should go</td>
  </tr>
  <tr>
   <td>green when</td>
   <td>you hover</td>
   <td>the pointing</td>
  </tr>
  <tr>
   <td>device over</td>
   <td>them.</td>
   <td></td>
  </tr>
  <tr>
   <td>The rows in</td>
   <td>this table</td>
   <td>should go</td>
  </tr>
  <tr>
   <td>dark green</td>
   <td>when the</td>
   <td>pointing device</td>
  </tr>
  <tr>
   <td>is over the</td>
   <td>five pixel</td>
   <td>border spacing</td>
  </tr>
  <tr>
   <td>and when it is</td>
   <td>over the cells.</td>
   <td></td>
  </tr>
  <tr>
   <td>Including blank:</td>
   <td></td>
   <td>cells.</td>
  </tr>
 </tbody>
</table>
</div>
   <pre class="rules">p:hover { background-color : lime }
a:hover { background-color : lime }

tr:hover { background-color : green }
td:hover { background-color : lime }

table { border-spacing: 5px; }</pre>
   <pre class="rules">
&lt;p>The background color of this paragraph should turn to green when
   the mouse pointer hovers either its text (here) or its whitespace background, here:&lt;/p>
&lt;address>The background color of &lt;a href="#foo">this anchor (here)&lt;/a> should turn to green when the pointing device hovers over it.&lt;/address>
&lt;table>
 &lt;tbody>
  &lt;tr>
   &lt;td>The cells in&lt;/td>
   &lt;td>this table&lt;/td>
   &lt;td>should go&lt;/td>
  &lt;/tr>
  &lt;tr>
   &lt;td>green when&lt;/td>
   &lt;td>you hover&lt;/td>
   &lt;td>the pointing&lt;/td>
  &lt;/tr>
  &lt;tr>
   &lt;td>device over&lt;/td>
   &lt;td>them.&lt;/td>
   &lt;td>&lt;/td>
  &lt;/tr>
  &lt;tr>
   &lt;td>The rows in&lt;/td>
   &lt;td>this table&lt;/td>
   &lt;td>should go&lt;/td>
  &lt;/tr>
  &lt;tr>
   &lt;td>dark green&lt;/td>
   &lt;td>when the&lt;/td>
   &lt;td>pointing device&lt;/td>
  &lt;/tr>
  &lt;tr>
   &lt;td>is over the&lt;/td>
   &lt;td>five pixel&lt;/td>
   &lt;td>border spacing&lt;/td>
  &lt;/tr>
  &lt;tr>
   &lt;td>and when it is&lt;/td>
   &lt;td>over the cells.&lt;/td>
   &lt;td>&lt;/td>
  &lt;/tr>
  &lt;tr>
   &lt;td>Including blank:&lt;/td>
   &lt;td>&lt;/td>
   &lt;td>cells.&lt;/td>
  &lt;/tr>
 &lt;/tbody>
&lt;/table>
</pre>
  </div>
 </body>
</html>