polgee Posted October 11, 2013 Share Posted October 11, 2013 I have HTML coded a link to be coloured blue, which is blue and acts like a link When I changed the coding to make the link red, it remained blue. But when I removed the <a href= the now previous link changed to red. Any explanations? Link to comment Share on other sites More sharing options...
newseed Posted October 11, 2013 Share Posted October 11, 2013 It could be anything, a typo, incorrect closing tag. Need more info. You should validate both html and css to see if you have any errors. Link to comment Share on other sites More sharing options...
davej Posted October 11, 2013 Share Posted October 11, 2013 <!DOCTYPE html><html><head><meta charset="utf-8"><title>my title</title><style>a:link {color: orange;} /* unvisited link */a:visited {color: green;} /* visited link */a:hover {color: yellow;} /* mouse over link */a:active {color: purple;} /* selected link */ </style></head><body><a href="http://www.w3schools.com/css/css_link.asp">Documentation on styling links</a></body></html> 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