hi guys. i really need to know, is there any way that i can make a link with the color chaning after you've clicked it? thanks riley
<body link="#330000" vlink="#663300"> edit the code, link="clore"(visit before color), vlink="clore"(after visit color)
thanks guys. foreststone, im only 12 so i dont understand much =D, if i wanted to keep the color the same for the following link, could you please edit it? thanks so much <font color=white> <a href=home.html>home</a>
if you want to use the ssame color then use <body link="#330000" vlink="#663300"> body link and vlink color same for same replace 663300 with 330000
No! He's just starting with web development, why not start him on the right track by getting him to not use deprecated crap like that... Use CSS, inside the <head> and </head> of your HTML, add this: <style type="text/css"> body { background-color: black; } a { color: white; } a:visited { color: #ccc; } </style> Code (markup): That will colour all links white and visited links will be a light shade of grey. Also, you should use quotes around attribute values and your home page should be index.html, e.g.: <a href="index.html">Home page</a> Not: <a href=home.html>Home page</a>
Reptileman42 Krt is correct. Both will work but if you are just starting try to learn the right way to do things from the start. You can set your style attributes in the <style> section or in a css file that you link to. The css file makes future changes much easier as you only change one file to change the entire site.
And as an overall: links are generally affected by 4 states (there's more than 4 but most people just use 4): how the link looks normally (called a:link), how it looks after someone's clicked on it (a:visited), how it looks when someone's got the mouse over it (a:hover) and what it looks like while they're clicking it (a:active). With CSS styling, you can make all those different colours if you want. Hover always looks cool. So in krt's code, <style type="text/css"> <--- says it's CSS styling body { background-color: black; } a { color: white; } <--- a means all things you can click on, usually links a:visited { color: #ccc; }<--- the colour of clickie things after they've been clicked once </style>