Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML body vlink attribute

HTML vlink attribute

HTML body Tag Reference HTML Tag

Example

Set the color of visited links in the document to red:

Runoob Tutorial

HTML Tutorial

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the vlink attribute.


Definition and Usage

HTML5 no longer supports the vlink attribute. Please use CSS instead.

The vlink attribute was deprecated in HTML 4.01.

The vlink attribute specifies the color of visited links in the document.


Compatibility notes

In HTML 4.01, the vlink attribute of the body element is deprecated; in XHTML 1.0 Strict DTD, the vlink attribute of the body element is not supported. Please use CSS instead.

CSS syntax (in the section):

CSS example: set the color of visited links

In our CSS tutorial, you can find more details about :visited pseudo-classknowledge.


Syntax

HTML tag