When i click on a link, its color should change, and it should be same until i press other link, How to do using "active"?? I tried, Its color changes when i click on it, But it gains its original color!
<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>