link Pseudo-class
Sets or retrieves the style of the <A> element for the default state of the link.
Syntax
HTML [A]:link { 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 pseudo-class is read/write with a browser-specific default.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see dynamic properties.
Remarks
The link pseudo-class often is set with specific styles for the other states—active, visited, and hover—of a link.
Internet Explorer 3.0 applies the link pseudo-class value to the visited psuedo-class.
Example
This example uses the link pseudo-class.
Sample Code
<STYLE> A:link{ color: #FF0000 } // unvisited link A:visited { color: #CFCFCF } // visited links </STYLE>
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. A
See Also
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.