css hover effects

CSS
  
a:hover{ 
	background-color: yellow;
}
  
   
    a:hover
 { 

   background-color: yellow;

 }
  
 /* Changes an element's color on hover */

.selector {
	background-color: black;
}

.selector:hover {
	background-color: blue;
}  
    /* 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: black;}
Source

Also in CSS: