Jump to content

Question about links


Guest aspeas

Recommended Posts

Guest aspeas

I'm 12 years old and I am making a website.I was just wondering how do you change the colour of a link?I have a blue background on the page so the links only show up after they have been clicked.I know this sounds stupid but please someone help me.Thanks

Link to comment
Share on other sites

Hi aspeas, you can change the colour of a link using CSS, here is an example

<html><head><style type="text/css">a:link {color: red}   /* unvisited link */a:visited {color: blue}  /* visited link */a:hover {color: green} /* mouse over link */a:active {color: orange} /* selected link */</style></head><body><a href="#">This is a link</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...