YouTip LogoYouTip

Att Body Vlink

HTML body vlink Attribute | Tutorial

Tutorial -- Learning is not just about technology, but also about dreams!

HTML Reference Manual

HTML Tags

HTML <body> vlink Attribute

The vlink attribute of the <body> tag specifies the color of a visited link in an HTML document.

Note: The vlink attribute is deprecated in HTML 4.01 and is not supported in HTML5. Use CSS instead.

Syntax

<body vlink="color_name|hex_number|rgb_number">

Attribute Values

  • color_name: Specifies the color of a visited link using a color name (e.g., "red").
  • hex_number: Specifies the color of a visited link using a hexadecimal value (e.g., "#FF0000").
  • rgb_number: Specifies the color of a visited link using an RGB value (e.g., "rgb(255,0,0)").

Example

<!DOCTYPE html>
<html>
<head>
    <title>HTML body vlink Attribute</title>
</head>
<body vlink="#FF0000">
    <p>This is a paragraph.</p>
    <p>Visit <a href="#">Tutorial</a> to learn more.</p>
</body>
</html>

In this example, the color of visited links will be red (#FF0000).

Browser Support

The vlink attribute is supported by all major browsers, but it is deprecated. Use CSS for styling links instead.

CSS Alternative

To style visited links using CSS, use the :visited pseudo-class:

a:visited {
    color: #FF0000;
}
← Att Button AutofocusAtt Body Text β†’