Question:easy

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

Solution and Explanation

Step 1: Three states of a link:
A link can be unvisited, visited, or being clicked. The body tag has one attribute for each state: link, vlink and alink.

Step 2: Meaning of vlink and alink:
vlink gives the colour once the page has been opened before. It helps the user see which links were already used. alink gives a short flash of colour while the mouse button is pressed on the link.

Step 3: Sample code:
<body link="blue" vlink="purple" alink="red">

Here unvisited links are blue, visited links are purple and a link being clicked turns red.

Final Answer:
vlink is for visited links and alink is for links being clicked. \[ \boxed{\text{vlink: visited link colour; alink: active link colour}} \]
Was this answer helpful?
0