active

Browser Internet Explorer Netscape Opera Safari Firefox
Version 5.5 6.0 7.0 8.0 8.0 9.0 7.0 8.0 9.2 9.5 1.3 2.0 3.1 1.5 2.0 3.0
Supported Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
Short information
CSS CSS1
Applied To links (tag <A>)
HTML analog <body ALINK="#RRGGBB">
Reference to specification http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes
Description
Pseudo class "active" determines a style for a link.When you click on the link, it becomes active.
Syntax
A:active { ... }
Arguments
No.
Example
 
  link
  <!--
   a:link {
    color: #0000d0; /* Link color */
   }
   a:visited {
    color: #900060; /* Color of visited links */
   }
   a:active {
    color: #f00; /* Color of active link */
   }
 
-->
 
<a href="task1.html">Calculate the engine speed per minute</a>
 
Given: rule box, clock with second hand, sheet of paper, thread, pencil, scissors.
The result of this example is shown on the figure 1