Vlink in HTML, short for visited link, is an important attribute for HTML body/anchor tag that allows developers to customize the appearance of links that have been visited by the user. Though it’s only a feature but its impact on usability in terms of web design is very high.
Table of Contents
So, what exactly does Vlink do? Let’s break it down:
Imagine browsing through a website, clicking on various links, and finding yourself lost in a sea of content. In such a scenario, distinguishing between visited and unvisited links becomes crucial for navigation. Here’s where the vlink CSS attribute comes into play, offering designers the power to customize the appearance of visited links, thereby enhancing user experience by easing navigation.
Syntax of Vlink in HTML:
<body vlink="color_name | hex_number | rgb_number">
- color_name: It provides the visited link’s color name.
- Hex_number: This value indicates the visited link’s color in hexadecimal notation.
- rgb_number: This variable describes the visited link’s color in terms of RGB values.
How do I create a Vlink in HTML?
<body id="cID" link="blue" alink="green" vlink="orange">
<a href="https://www.coderstechzone.com">CodersTechZone.com</a><br>
<a href="https://www.coderstechzone/html/">CodersTechZone HTML Tutorial</a><br>
<a href="https://www.coderstechzone/CSS/">CodersTechZone CSS Tutorial</a>
</body>
Code Explanation:
In this above example, the visited link will appear in the specified orange color once it has been clicked by the user.
Output:
Another Format of What is Vlink in CSS?
<a href="coderstechzone.com" vlink="orange">Visited Link</a>
Note: HTML5 does not allow HTML vlink attributes. This attribute can be used instead by using the CSS:visited pseudo-class selector.
As vlink attribute is now going to be deprecated we strongly recommend to start using four links states mentioned below:
- a:link – denotes a normal, unvisited link
- a:visited – indicates a link that the user has visited
- a:hover – indicates a link that the user mouse’s over it
- a:active – indicates a link that the moment it is clicked
What is alink vlink in html?
In contrary of vlink, alink is also needs to understand. Alink: Also known as an active link. The link that we clicked will be #EE0000 (red – default if user does not change the preference) when it is visible while the website or webpage is open in a separate tab. This indicates that the webpage has been accessed using the link and is now live.
As of now we have learned what is vlink and how to use vlink in html? But instead of using vlink rather we suggested to use different CSS code for all 4 states of a link mentioned above. Happy Coding.
🏋️♂️ Discover Code Blocks From 20+ yrs JS Expert
💥 Asp.net C# Developer
🏆 Solution Architect
👨✈️ Database Administrator
📢 Speaker
🎓 MCTS since 2009
Leave a Reply