Set the Color of Visited Links with CSS


To set the color of visited link, use the :visited property in CSS. You can try to run the following code to set the visited color link

<html>
   <head>
      <style>
         a:visited {
            color: #FF0000
         }
      </style>
   </head>
   <body>
      <a href = "">My Link</a>
   </body>
</html>

Updated on: 31-Jan-2020

386 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements