Underline <a> tag when hovering - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover on list

Description

Underline <a> tag when hovering

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
a:hover {<!--from  ww  w .  ja va 2  s  .  c  om-->
   text-decoration:underline;
}

a {
   text-decoration:none;
   color:Chartreuse;
}
</style> 
 </head> 
 <body> 
  <form id="form1" runat="server"> 
   <div> 
    <a class="hover" href="">Lorem ip</a> 
   </div> 
  </form>  
 </body>
</html>

Related Tutorials