Jump to content

link colour problem


polgee

Recommended Posts

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

<!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

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...