You are here: Reference > HTML > attributes > vLink (body)

vLink attribute (body)

Browser support:
Sets the color of the visited hypertext links in the entire document.
This attribute is deprecated. Use the visited pseudo with the color style property to modify the color of a visited link: 'a:visited {color:#FFFF00;}'. See Example 2 for details.
JavaScript page for this attribute: vLink. You can find other example(s) there.

Possible values:

A legal color value. It can be a hexadecimal, RGB or predefined color value. For more information, see the page for colors.
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the aLink, link and vLink attributes:
<body aLink="green" link="red" vLink="black">
    Click on the following hyperlinks to see the default, normal and visited states:
    <br /><br />
    <a href="#first">Hyperlink text</a>
    <br /><br />
    <a href="#second">Hyperlink text</a>
    <br /><br />
    <a href="#third">Hyperlink text</a>
</body>
Did you find this example helpful? yes no

Example HTML code 2:

This example illustrates the use of the color style property for hypertext links:
<head>
    <style>
        a:link { color: red; }
        a:visited { color: black; }
        a:active { color: green; }
    </style>
</head>
<body>
    Click on the following hyperlinks to see the default, normal and visited states:
    <br /><br />
    <a href="#first">Hyperlink text</a>
    <br /><br />
    <a href="#second">Hyperlink text</a>
    <br /><br />
    <a href="#third">Hyperlink text</a>
</body>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content