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: 2020-01-31T07:00:11+05:30

522 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements