Pseudo-classes: Anchor Pseudo-classes

Anchor Pseudo-classes

/* unvisited link */
a:link {
  color: #FF0000;
}

/* visited link */
a:visited {
  color: #00FF00;
}

/* mouse over link */
a:hover {
  color: #FF00FF;
}

/* selected link */
a:active {
  color: #0000FF;
}

a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective! a:active MUST come after a:hover in the CSS definition in order to be effective.

Related concepts

Anchor Pseudo-classes

Pseudo-classes: Anchor Pseudo-classes — Structure map

Clickable & Draggable!

Pseudo-classes: Anchor Pseudo-classes — Related pages: