Sets the style of anchor when the link is engaged or active.
Syntax
HTML [A]:active { attribute1:parameter1 [; attribute2:parameter2 [; . . .]] } Scripting N/A
Possible Values
attribute Any attribute applicable to text. parameter Any of the range of values available to the corresponding attribute. The default value is browser-specific.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.
Remarks
Active means that the user currently is navigating the link. The active pseudo-class is often used to set specific styles for the other states of a link: link, visited, and hover. Using pseudo-classes on objects other than the A object has no effect.
Example
This example uses the active pseudo-class to set the attributes of the active link.
Sample Code
A:active { font-weight:bold; color:purple }
Applies To
HTML A Scripting N/A