Set the Color of Visited Links with CSS

JavascriptWeb DevelopmentFront End Scripts

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>
raja
Published on 17-Apr-2018 10:26:33
Advertisements