Change the Color of Link when a Mouse Hovers

JavascriptWeb DevelopmentFront End Scripts

To change the color of a link when we bring a mouse pointer over that link, use the: hover property.

Example

You can try to run the following code to change the link color:

<html>
   <head>
      <style>
         a:hover {
            color: #FFCC00
         }
      </style>
   </head>
   <body>
      <a href = "">My Link</a>
   </body>
</html>
raja
Published on 17-Apr-2018 07:33:46
Advertisements