Easy Tutorial
❮ Tag Script Av Prop Duration ❯

HTML <body> vlink Attribute

HTML <body> Tag

Example

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


Browser Support

All major browsers support the vlink attribute.


Definition and Usage

The vlink attribute of <body> is 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. Use CSS instead.

CSS Syntax (in the <head> section): <style>a:visited {color: #FF0000}</style>

CSS Example: Set the Color of Visited Links

In our CSS tutorial, you can find more information about the :visited pseudo-class.


Syntax

Attribute Values

Value Description
color_name Specifies the font color with a color name (e.g., "red").
hex_number Specifies the font color with a hexadecimal value (e.g., "#ff0000").
rgb_number Specifies the font color with an rgb code (e.g., "rgb(255,0,0)").
❮ Tag Script Av Prop Duration ❯