top left
The HTML Source Logo


 html
Top Right
    
 Getting StartedHow Do I...TroubleShootingPromotionContact Us
 html
HTML
SEARCH THE SITE
advanced search



CATEGORIES
Home
Getting Started
HTML Cheat Sheet
Webmaster Tools
HTML Help Forum
Color Codes
Link to us









































bottom
HTML HTML HTML HTML
How do I change the color of my link's?


To make your text links change color when you place your mouse over them, you have to add a little bit of CSS (Cascading Style Sheets) to your web page.

How To Do It

Place the following code into the <HEAD> section of your web page, right after the <title> tag:

<style type="text/css">
<!--
A:link { text-decoration: underline; color:"#YourColor" }
A:visited { text-decoration: underline; color:"#YourColor" }
A:hover { text-decoration: underline; color:"#YourColor" }
-->
</style>
Configuring The Script

To make this work correctly on your web page, you need to replace (#YourColor) in the above code for all 3 attributes (A:link , A:visited , A:hover) with the actual color code of the color you want. If you don't know what the color code is of the color you want, Click Here to see a complete list of all the colors and there color codes.

A:link will be the normal color of your text links.
A:visited will be the color of the text links that you have already visited.
A:hover will be the color of the text link when you have your mouse over it.

TIP: If you don't like the underline on your text links, you can replace the word (underline) in the above code to the word (none).































Company   |   Careers   |   Partners   |   Advertising   |   Help
Privacy Policy   |   Trademark Notices   |   User Agreement
© 2001 TheHTMlSource.com, INC. All Rights Reserved.



Site hosted by Angelfire.com: Build your free website today!