I wrote the code such that if the link is visited it's font-size should decrease, the text should get stroked through and the color should change to mild pink. Only color is changing not anything else.
<!DOCTYPE html>
<html>
<head>
<style>
a:link {
text-decoration: underline;
color:black;
}
a:visited {
text-decoration: line-through;
font-size:0.2em;
color:#ff6666;
}
a:hover {
text-decoration: overline;
color: #ff1a1a;
font-size: 1.5em;
}
a:active {
text-decoration: none;
font-size: 2em;
color: #800000;
}
</style>
</head>
<body>
<p><b><a href="http://www.facebook.com" target="_blank">This is a link</a></b></p>
<p><b>Note:</b> a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective.</p>
<p><b>Note:</b> a:active MUST come after a:hover in the CSS definition in order to be effective.</p>
</body>
</html>
My question is why are other parameters not changing except color when the link is visited?