CSS - Links

Links

In this tutorial, I will be showing you all you need to know about using CSS to style HTML links.

Links can be styled with many CSS properties such as color, background-color, text-decoration, font-size, etc. There are four (4) types of link state:

  • unvisited link - (a:link)
  • visited link - (a:visited)
  • active link - (a:active)
  • hovered link - (a:hover)

Link Color

To set link color, use the color property and the pseudo class of any link state you want.

Link Underlining

Link underlining can be removed or adjusted using the text-decoration property

Link Button

Link can be styled to look like a button by using the following CSS properties: background-color, padding, border, text-decoration, etc.

ADVERTISEMENTS

LEARNING IS A CONTINOUS PROCESS - PRACTICE MAKES PERFECT