Computer >> Computer tutorials >  >> Programming >> Javascript

Change the Color of Active Links with CSS


To change the color of active links, use the: active property. You can try to run the following code to change the color of active links:

Example

<html>
   <head>
      <style>
         a:active {
            color: #FF00CC
         }
      </style>
   </head>
   <body>
      <a href = "">My Demo Link</a>
   </body>
</html>