Style all unvisited links with CSS

CSSWeb DevelopmentFront End Technology

To style all unvisited links, use the CSS :link selector. 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 14:28:43
Advertisements