active Pseudo-class

DHTML, HTML, & CSS

active Pseudo-class


Sets the style of anchor when the link is engaged or active.

Syntax

HTML[A]:active { attribute1:parameter1 [; attribute2:parameter2 [; . . .]] }
ScriptingN/A

Possible Values

attributeAny attribute applicable to text.
parameterAny 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 propertiesInternet Link.

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 ]
PlatformVersion
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

Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.