vlink (HTML attribute)
Example
This code sets unvisited links to
"gray":
<body vlink="gray">
Description
Visited links will display in
purple with an underline, which may not be sufficiently different to the
default blue link display for some users (see the section on link attribute for more).
The vlink attribute allows you to change the color
of all links to pages that have previously been visited.
This
attribute is deprecated, so you should avoid using it. Instead, use CSS to
set link colors, using a:visited {color:gray;}
instead.
Note that the visited state is based on the browser’s history. If the user clears the browser’s history log, the visited links will once again render as unvisited links.
Value
This attribute
takes a recognized color name (for
example, "blue" or "red") or
a value specified in hexadecimal notation (such as
"#003366"). Note that it’s not possible to use
shorthand hex values for the bgcolor in HTML as you
can in CSS (for example, you can’t express "#cceeff" as
"#cef").
Compatibility
| IE | 5.5 | Full |
|---|---|---|
| 6.0 | Full | |
| 7.0 | Full | |
| Firefox | 1.0 | Full |
| 1.5 | Full | |
| 2.0 | Full | |
| Safari | 1.3 | Full |
| 2.0 | Full | |
| 3.0 | Full | |
| Opera | 9.2 | Full |
| 9.5 | Full |
Every browser listed supports this attribute.
User-contributed notes
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

