1/*a normal, unvisited link*/
2a:link{
3 color: green;
4}
5/*a link the user has visited*/
6a:visited{
7 color: purple;
8}
9/*a link when the user mouses over it*/
10a:hover{
11 color: yellow;
12}
13/*a link the moment it is clicked*/
14a:active{
15 color: brown;
16}
1<!DOCTYPE html>
2<head>
3 <style>
4 /* Your Style Goes Here*/
5 .my-div{
6 background-color: #f00'
7 }
8 </style>
9</head>
10<html>
11 <body>
12
13 </body>
14</html>