Usage of :visited pseudo-class in CSS

The :visited pseudo-class is used to add special style to a visited link. Possible values could be any color name in any valid format. 

Example

<html>
   <head>
      <style>
         a:visited {
            color: #006600
         }
      </style>
   </head>
   <body>
      <a href = "">Click this link</a>
   </body>
</html>
Updated on: 2020-03-04T12:43:32+05:30

72 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements