CSS Links

Styling Links

Use properties like color and text-decoration.

Pseudo-classes

  • :hover: style when mouse hovers.
  • :active: style when link is clicked.
  • :visited: style visited links.

Examples

a { color: blue; text-decoration: none; }

a:hover { text-decoration: underline; }

a:visited { color: purple; }