Set font size and color for visited anchor in HTML and CSS

Description

The following code shows how to set font size and color for visited anchor.

Example


<html>
<head>
<style>
a:visited { font-size:75%; color:gray }
</style><!--from   w  w  w .j a  v  a  2s.c om-->
</head>
<body>
<a href="http://www.java2s.com" target="_blank">java2s.com page link</a>
</body>
</html>

Click to view the demo

The code above generates the following result.

Set font size and color for visited anchor in HTML and CSS