Showing posts with label Pseudo class in css. Show all posts
Showing posts with label Pseudo class in css. Show all posts

Monday, 29 July 2013

Pseudo class in CSS

Written By:-Avinash Malhotra
Our Website:- Tech Altum

Pseudo classes are used to add some special effects to some selectors.

Pseudo class for anchor:

An anchor tag has following pseudo classes:

  1. a:link
  2. a:visited
  3. a:active
  4. a:hover
a:link
 When an anchor tag is a link( href tag is used), text color will becomes blue automaticly
For Example
LINK
we can also chane the color of link, for example
LINK WITH COLOR RED AND N0 UNDERLINE
Way to write CSS
a:link{ color:red; text-decoration:underline}