Link States and Pseudo-classes

CSS pseudo-classes allow you to style links based on their different states. The order of these pseudo-classes is important for proper styling.

a:link {
  color: green;
}

a:visited {
  color: olive;
}

a:focus {
  background: orange;
}

a:hover {
  background: yellow;
  text-decoration: underline red wavy;
}

a:active {
  background: red;
}
lightbulb Remember the Order
Use the mnemonic: LoVe Fears HAte
Link, Visited, Focus, Hover, Active