1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Selectors: The dynamic pseudo-classes: :hover on different elements</title>
5 <link rel="author" title="Gabriele Romanato" href="mailto:gabriele.romanato@gmail.com">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes">
7 <meta name="flags" content="interact">
8 <meta name="assert" content="Browsers should honour the change of state in the elements">
9 <style type="text/css">
10 p+p:hover {background-color: green; color: white}
11
12 </style>
13 </head>
14 <body>
15 <p>The next paragraph should have a green background color and a white text color on :hover.</p>
16
17 <p>Hover me</p>
18
19
20 </body>
21 </html>