Link color/code ok?

liunx

Guest
Hi all,<br />
How do I make my links blue,then purple when clicked on,does this code look ok? As usual thanks for your help:<br />
<br />
<html><head><title>Links</title></head><br />
<a href=http://www.htmlforums.com/archive/index.php/"products.html#1"><br />
<p><b>Womens Health</b></p><br />
<a href=http://www.htmlforums.com/archive/index.php/"products.html#2"><br />
<p><b>Mens Health</b></p><br />
<a href=http://www.htmlforums.com/archive/index.php/"products.html#3"><br />
<p><b>Weight Loss</b></p><br />
<a href=http://www.htmlforums.com/archive/index.php/"products.html#4"><br />
<p><b>Immune Booster</b></p><br />
<a href=http://www.htmlforums.com/archive/index.php/"products.html#5"><br />
<p><b>Energy and Vitality</b></p><br />
<a href=http://www.htmlforums.com/archive/index.php/"products.html#3"><br />
<p><b>Structural System</b></p><br />
<a href=http://www.htmlforums.com/archive/index.php/"mailto:[email protected]"><b>Contact me</b></body></html><!--content-->First up you need to open your <body> after you close the </head>.<br />
<br />
Secondly do you mean you want a rollover colour or a colour that shows the punter that they have already been to a certain link.<br />
<br />
To show that a link has already been visited you need to add some attributes to the body tag. Something like this.<br />
<br />
<body link="blue" vlink="purple"><br />
<br />
That will help you show the users where they have already been.<br />
<br />
To achieve something a bit more funky try a little CSS in your HTML (cascading style sheets). Try this.<br />
<br />
<head><br />
<title>your title</title><br />
<style type="text/css"><br />
a:link {color: blue; font-size: 8pt}<br />
a:visited {color: purple; font-size: 8pt} <br />
a:hover {color: yellow; font-size: 11pt}<br />
</style><br />
</head><br />
<br />
Stick that in your code for some simple formatting fun. It is all easy enough to understand. Any probs gimme a shout.<!--content-->
 
Back
Top