/* Changes an element's color on hover */ .selector { background-color: black; } .selector:hover { background-color: blue; }
.a:hover{background-color: black;}
a:hover{ background-color: yellow; }
/* unvisited link */ a:link { color: green; } /* visited link */ a:visited { color: green; } /* mouse over link */ a:hover { color: red; } /* selected link */ a:active { color: yellow; }
a:hover { background-color: yellow; }