Select unvisited links - HTML CSS CSS Selector

HTML CSS examples for CSS Selector:link

Description

Select unvisited links

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
a:link {
    background-color: yellow;
}
</style><!-- w  w  w  .j  a v a 2 s .c om-->
</head>
<body>

<a href="https://www.java2s.com">java2s.com</a>
<a href="http://www.wikipedia.org">Wikipedia</a>

</body>
</html>

Related Tutorials