Jump to content

Coloring Links Sample on W3 Site Seems Misleading


JerseyWill

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

Link to comment
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
×
×
  • Create New...