JerseyWill Posted October 22, 2013 Share Posted October 22, 2013 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 More sharing options...
Ingolme Posted October 22, 2013 Share Posted October 22, 2013 The link will appear as visited as long as the destination of the link is in your browser's history. Link to comment Share on other sites More sharing options...
JerseyWill Posted October 23, 2013 Author Share Posted October 23, 2013 Thanks! I did not know that. Before each test I emptied, the browser's cache, thinking that would purge "visitedness." Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now