You can set the colors of links, active links and visited links using link, alink and vlink attributes of <body> tag.
Example
Save the following in index.html and open it in any web browser to see how link, alink and vlink attributes work.
<!DOCTYPE html>
<html>
<head>
<title>Scholars Hyperlink Example</title>
<base href="http://www.scholarsglobe.com/">
</head>
<body alink="red" link="#040404" vlink="blue">
<p>Click following link</p>
<a href=" index.html" target="_blank" >HTML Tutorial</a>
</body>
</html>
The result is, the link will change one color to another after visiting the link.
HTML Tutorial
No comments:
Post a comment