How to change the color of active links with CSS

CSSWeb DevelopmentFront End Technology

Use the :active class to change the color of active links. Possible values could be any color name in any valid format. 

Example

You can try to run the following code to implement the color of an active link −

<html>
   <head>
      <style>
         a:active {
            color: #FF00CC
         }
      </style>
   </head>
   <body>
      <a href = "">My Link</a>
   </body>
</html>
raja
Published on 18-Apr-2018 07:52:32
Advertisements