Change formatting of a link

2

Personal. I would like to know how to apply an underscore to a link as soon as a person positions the mouse over a text with one.

I removed the underline of the link with text-decoration: none and would like to apply the underline only when someone has placed the mouse over the link.

Thank you!

    
asked by anonymous 25.08.2016 / 04:47

1 answer

4

With a:hover (when mouse over).

See an example by running the code below:

/*  CSS */

a{
  text-decoration: none;
  }

a:hover{
  text-decoration: underline;
  }
<!-- HTML -->    


<a href="">Link teste</a>
    
25.08.2016 / 04:54