Open In App
Related Articles

HTML <body> vlink Attribute

Improve Article
Improve
Save Article
Save
Like Article
Like

The HTML <body> vlink Attribute is used to specify a color of a visited link in a Document.

Note: The HTML <body> vlink attribute is not supported by HTML5. Instead of using this attribute, we can use CSS :visited pseudo-class selector.

Syntax:

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

Attribute Values:

  • color_name: It specifies the name of the color of the visited link.
  • hex_number: It specifies the color of the visited link in terms of hex code.
  • rgb_number: It specifies the color of the visited link in terms of rgb value

Example:

html




<!DOCTYPE html>
<html>
 
<head>
    <title>
        HTML body vlink Attribute
    </title>
</head>
 
<!-- body tag starts here -->
<body vlink="red">
    <center>
        <h1>GeeksforGeeks</h1>
        <h2>HTML <body> vlink Attribute</h2>
         
        <p>Click on a Below link</p>
         
        <a href="#">
            It is a Computer Science portal For Geeks
        </a>
        <br>
         
        <p>
              <a href="#">GeeksForGeeks</a>
          </p>
    </center>
</body>
<!-- body tag ends here -->
 
</html>


Output:

Supported Browsers: The browser supported by <body> vlink Attribute are listed below:

  • Google Chrome
  • Firefox
  • Safari
  • Opera
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 04 Aug, 2023
Like Article
Save Article
Previous
Next
Similar Reads
Complete Tutorials