Home  >  Article  >  Web Front-end  >  Use in CSS: Usage of link pseudo-class

Use in CSS: Usage of link pseudo-class

WBOY
WBOYforward
2023-08-31 20:57:09805browse

Use in CSS: Usage of link pseudo-class

:link pseudo-class is used to add special styles to unvisited links. Possible values ​​can be color names in any valid format.

Example

<html>
   <head>
      <style>
         a:link { color:#000000; }
      </style>
   </head>
   <body>  
      <a href = "">
         Demo Link
      </a>
   </body>
</html>

The above is the detailed content of Use in CSS: Usage of link pseudo-class. 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