CSS Links and its Example

CSS Links :

A link has four different states — link, visited, active and hover.

  • Link: class is Used to add special style to an univisited linik.
  • Visited: class is used to add special style to a visited link.
  • Active: class is used to add special style to an active element.
  • Hover: class is used to add special style to an element when you mouse over it.

These four states of a link or hyperlink can be styled differently through CSS properties using the pseudo-classes of anchor element, depending on what state they are in.


Output :


Visit aimtocode Tutorial