Home  >  Article  >  Web Front-end  >  How to use the `:visited` pseudo-class in CSS

How to use the `:visited` pseudo-class in CSS

WBOY
WBOYforward
2023-08-22 23:01:02808browse

How to use the `:visited` pseudo-class in CSS

Pseudo class:visited is used to add special styles to visited links. Possible values ​​can be color names in any valid format.

Example

<html>
   <head>
      <style>
         a:visited {
            color: #006600
         }
      </style>
   </head>
   <body>
      <a href = "">Click this link</a>
   </body>
</html>

The above is the detailed content of How to use the `:visited` pseudo-class in CSS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete