dynamic-pseudo-classes-002

Selectors: The dynamic pseudo-classes: :active

WeasyPrint

This browser

Flags
interact
Assertion
Browsers should honour the change of state in the elements

Source

 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: :active</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:link {color: blue}
11 a:visited {color: purple}
12 a:active {color: green; font-weight: bold}
13 
14 </style>
15  </head>
16  <body>
17 <p>The link in the next paragraph should have a green text color and a bold font weight when it's activated.</p>
18 
19 <p><a href="#">Click me</a>.</p>
20 
21 
22  </body>
23 </html>