<!DOCTYPE html>
<html>
  <head>
    <style>
        .link {
          color: green;
        }
        .link:visited {
          color: red;
        }
    </style>
  </head>
  <body>
    <a href="https://not-a-site.com" class="link">Link</a>
  </body>
</html>

