<html><head>
<title>:hover pseudo-class on links</title>
<style type="text/css">
p { color: navy; }
.a a:hover { background: green; color: white; }
.b a:hover { background: red; color: yellow; }
.b a:link { background: green; color: white; }
.c :link { background: green; color: white; }
.c :visited:hover { background: red; color: yellow; }
</style>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
<link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"> <!-- bogus link to make sure it gets found -->
<meta name="flags" content=" interact">
</head>
<body>
<!--[ELEMENT('p')]--><p class="a"><!--[TEXT('p')]-->The background color of <!--[/TEXT('p')]--><a href="#foo"><!--[TEXT('p')]-->this anchor (<!--[/TEXT('p')]--><strong><!--[TEXT('p')]-->here<!--[/TEXT('p')]--></strong><!--[TEXT('p')]-->)<!--[/TEXT('p')]--></a><!--[TEXT('p')]--> should turn to green when the pointing device hovers over it.<!--[/TEXT('p')]--></p><!--[/ELEMENT('p')]-->
<!--[ELEMENT('p')]--><p class="b"><!--[TEXT('p')]-->The background color of <!--[/TEXT('p')]--><a href="#foo"><!--[TEXT('p')]-->this anchor (<!--[/TEXT('p')]--><strong><!--[TEXT('p')]-->here<!--[/TEXT('p')]--></strong><!--[TEXT('p')]-->)<!--[/TEXT('p')]--></a><!--[TEXT('p')]--> should <!--[/TEXT('p')]--><strong><!--[TEXT('p')]-->remain green when you hover it<!--[/TEXT('p')]--></strong><!--[TEXT('p')]-->.<!--[/TEXT('p')]--></p><!--[/ELEMENT('p')]-->
<!--[ELEMENT('p')]--><p class="c"><!--[TEXT('p')]-->The background color of <!--[/TEXT('p')]--><a href="http://link.example.com/"><!--[TEXT('p')]-->this anchor (<!--[/TEXT('p')]--><strong><!--[TEXT('p')]-->here<!--[/TEXT('p')]--></strong><!--[TEXT('p')]-->)<!--[/TEXT('p')]--></a><!--[TEXT('p')]--> should <!--[/TEXT('p')]--><strong><!--[TEXT('p')]-->remain green when the pointing device hovers over it<!--[/TEXT('p')]--></strong><!--[TEXT('p')]--> (do not follow that link).<!--[/TEXT('p')]--></p><!--[/ELEMENT('p')]-->
</body></html>