Role of CSS :link Selector

CSSWeb DevelopmentFront End Technology

Use the CSS :link selector to style all unvisited links. You can try to run the following code to implement the :link selector −

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <style>
         a:link {
            background-color: orange;
         }
      </style>
   </head>
   <body>
      <a href="https://www.example.com">Demo Website</a>https://www.example.com/
   </body>
</html>
raja
Published on 08-May-2018 17:57:43
Advertisements