active Pseudo-class
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
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus.
HTML A Scripting N/A
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.