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: :focus</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 a:focus {background-color: green; color: white}
11
12 </style>
13 </head>
14 <body>
15 <p>The link below should have a white text color and a green background color when it has focus.</p>
16
17 <p><a href="#">Link</a></p>
18
19
20 </body>
21 </html>