Is it possible to make a link change color when clicked, and have that color stay until another link is clicked? How can I achieve this using the "active" attribute? I attempted it, but the link reverts back to its original color after clicking.
<html>
<head>
<style>
a
{
display:block;
height:5%;
width:10%;
background-color:#96C;
border: solid #96C 1px;
margin-top:5px;
}
a:hover
{
background-color:#666;
}
a:active
{
background-color:#C99;
}
</style>
</head>
<body>
<a href="#">Home</a>
<a href="#">Sign in</a>
<a href="#">Sign up</a>
<a href="#">Exit</a>
</body>
</html>