Links can be styled in different ways.
Links can be styled with any CSS property (e.g. color, font-family, background, etc.).
Special for links are that they can be styled differently depending on what state they are
The four links states are:
When setting the style for several link states, there are some order rules:
In the example above the link changes color depending on what state it is in.
Lets go through some of the other common ways to style links:
The text-decoration property is mostly used to remove underlines from links:
The background-color property specifies the background color for links:
Add different styles to hyperlinksThis
example demonstrates how to add other styles to hyperlinks.
Advanced - Create link
boxesThis example demonstrates a more advanced example where we combine several CSS
properties to display links as boxes.
Your Query was successfully sent!