The LINK tag lets the person change the color of the links. There are two types of links:
An unvisited link is a link a reader has not previously selected.
And a visited link is a link a reader has been to.
At the end of lesson 4 students will be able to change the link colors to help the visitor recognize if they have been to the page or site.
To change the color of links:
Place the cursor inside the BODY tag
To change the color of links that have not yet been visited type LINK="#rrggbb"
To change the color of links that have already been visited, type VLINK="#rrggbb"
To change the color of a link when clicked on type ALINK="#rrggbb"
See example below
<html>
<Head>
<Title>Link Colors</Title>
</Head>
<A body link="rrggbb"> replacing the rrggbb with the a hexadecimal representation of the desired color.
Repeat the link step for each type of link
</body>
</html>
![]() |
|
|
|
![]() |
|
![]() |
|
||||
| |
|
||||