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

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>