Check out example codes for "how to use visited hover active and visited in css". It will help you in understanding the concepts better.

Code Example 1

/* 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;
}

Learn ReactJs, React Native from akashmittal.com