Question:

Explain the purpose of the vlink and alink attributes used within the <body> tag.

Show Hint

Think of the state of a link: already visited, or being clicked right now.
Updated On: Nov 3, 2026
Show Solution
collegedunia
Verified By Collegedunia

Solution and Explanation

Step 1: Understanding the Question:
Both attributes are written inside the <body> tag and both change the colour of hyperlinks, but for different states of the link.

Step 2: Purpose of vlink:
vlink means visited link. It sets the colour of a link that the user has already clicked or visited. Example: vlink="purple".

Step 3: Purpose of alink:
alink means active link. It sets the colour of a link at the exact moment it is being clicked. Example: alink="red".

Step 4: Example:
<body vlink="purple" alink="red">


Final Answer:
vlink colours already visited links and alink colours the link at the moment of clicking. \[ \boxed{\text{vlink: visited link colour; alink: active link colour}} \]
Was this answer helpful?
0
0

Top CBSE X Questions

View More Questions