The hover selector can be used on all elements,not only on links. Write below code on anchor tag hover attribute:- <style>
a:hover
{
background-color: blue;
}
</style>
<a href = "http://www.dotnetfunda.com">dotnetfunda.com</a>
When we move our mouse on link,then its color will be blue.