Change <a> link color with a:link, a:visited, a:hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover Link

Description

Change <a> link color with a:link, a:visited, a:hover

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style type="text/css">
a:link {
   text-decoration:none;<!--from  ww w  . ja  v a 2 s . c om-->
   color:Chartreuse;
}

a:visited {
   color:yellow;
}

a:hover {
   color:blue;
}
</style> 
 </head> 
 <body> 
  <a>My Text</a>  
 </body>
</html>

Related Tutorials