<!DOCTYPE html><html><head>
<title>:active pseudo-class</title>
<style type="text/css">a:active { background-color : lime }</style>
<link rel="author" title="Daniel Glazman" href="http://glazman.org/">
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
<link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors">
<meta name="flags" content=" interact">
</head>
<body>
<p>The background color of <a href="#foo">the anchor</a>
should turn to green when it is activated and come back to
normal when it is released.</p>
</body></html>