Links in CSS:

You can also manipulate links with the help of CSS. Links are used to link the HTML pages. You can style a link differently depending in which state they are.

There are four states of links which you can manipulate by CSS:

  • a:link : This is a unvisited normal link
  • a:visited : This is a link which has visited by user
  • a:active : This is a link which has just clicked
  • a:hover : This is a link when user take his mouse over it

 Example:

Example:

Here is example with some common styles for link

 

Leave a Reply

Your email address will not be published. Required fields are marked *