News:

MyKidsDiary.in :: Capture your kids magical moment and create your Online Private Diary for your kids

Main Menu

Give Different Colors for Hyperlink using CSS

Started by Kalyan, May 25, 2009, 12:27 AM

Previous topic - Next topic

Kalyan

Give Different Colors for Hyperlink using CSS

<html>
<head>

<style type="text/css">
a:link {color: #FF0000}
a:visited {color: #00FF00}
a:hover {color: #FF00FF}
a:active {color: #0000FF}
</style>

</head>

<body>

<p><b><a href="default.asp" target="_blank">This is a link</a></b></p>
<p><b>Note:</b> a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective!!</p>
<p><b>Note:</b> a:active MUST come after a:hover in the CSS definition in order to be effective!!</p>

</body>
</html>

ganeshbala

Hey Cool Its fine...
Thanks for the Effect...

:acumen

dhoni

this is easy program
now i can easily give different color in hyperlink with css program