<p>
  <span class="link">未訪問リンク</span>
</p>
<p>
  <span class="visited">訪問済みリンク</span>
</p>
span {
  text-decoration: underline;
  cursor: pointer;
}

.link {
  color: green;
}

.visited {
  color: gray;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.