How do you make a link, in HTML, a certain color?

You know, with HTML you can make links? Well, the links are usually blue if youv'e never clicked it before and purple if youv'e clicked it before. How do you make those colors that YOU chose?

Public Comments

  1. <A href="somepage.html" style="color: #000000">Visit Somepage</A> EDIT: Don't listen to dwightl.geo He wants you to use CSS to change your link color but you asked for HTML and that's what I gave, FYI what he said is CSS not HTML and shouldnt be used like that, sorry
  2. color="blue" i think...
  3. add color="000000" to the definition where "000000" is a hex number from "000000" to "FFFFFF". Do a google on HTML color to find the one you want.
  4. <FONT COLOR=GREEN> then the link followed by (FONT COLOR> with the / somwhere but I haven't done that stuff in about 7years.
  5. go to your HTML, find the colour code for the link and replace it with a new colour code... here's a link for a chart for you...it's just a starter chart, but it's decent
  6. <style type="text/css"> a.red:link {color:red} a.red:visited {color:purple} a.red:hover {color:blue} a.red:active {color:green} </style> <a class="red" href="http://www.yahoo.com/ ">Yahoo</a> ★★ BEST HTML/XHTML/CSS REFERENCE ★★ ◙ The best HTML/XHTML Reference ☞ http://www.w3schools.com/tags/ ◙ The best Cascading Style Sheet Reference ☞ http://www.w3schools.com/css/css_reference.asp html ◙ Links to HTML/HTML related sites ☞ http://www.websitetips.com/html/ ◙ Links to Cascading Style Sheet related sites ☞ http://www.websitetips.com/css/ ◙ The best Cascading Style Sheet discussion email list ◙ http://www.css-discuss.org/ ◙ Links to thousands of Cascding Style Sheet examples sites ☞ http://css-discuss.incutio.com/ ◙ Css Filters ☞ http://www.centricle.com/ref/css/filters/ <Enjoy! />
Powered by Yahoo! Answers