Click to return to the DHTML, HTML     
ACTION Attribute | action...     activeElement Property     DHTML Properties    
Web Workshop  |  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 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 ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
HTML A
Scripting N/A


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.