Jump to content
JerseyWill

Coloring Links Sample on W3 Site Seems Misleading

Recommended Posts

I was studying this "You try it" on the W3 site:http://www.w3schools.com/css/tryit.asp?filename=trycss_linka:link {color:#FF0000;} /* unvisited link */a:visited {color:#00FF00;} /* visited link */a:hover {color:#FF00FF;} /* mouse over link */a:active {color:#0000FF;} /* selected link */and used the code in a page of mine.But my page always opened with the link colored green, as if the link had already been visited; whereas the sample shows its initial state as red, or unvisited, as the code comment indicates it should be.Curious, I changed the destination in the sample from "default.asp" to "http://www.google.com/" Then the unvisited, initial state of the link was green like mine, not red.I downloaded the code and replicated the sample on my website, with the same results when the destination was changed.Please advise.Thanks

Share this post


Link to post
Share on other sites

The link will appear as visited as long as the destination of the link is in your browser's history.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×