Usage of :link pseudo-class in CSS

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

Example

<html>
   <head>
      <style>
         a:link { color:#000000; }
      </style>
   </head>
   <body>  
      <a href = "">
         Demo Link
      </a>
   </body>
</html>
Updated on: 2020-03-04T12:38:51+05:30

96 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements