CSS - Links


CSS - Links

  • In CSS, Links are used to set different properties for hyperlinks. 
  • Different types of link selectors are,
    • a: link - Specifies the style for normal unvisited links.
    • a: visited -  Signification for visited links.
    • a: hover - A link is hovered when the mouse pointer moves over it.
    • a: active - The specific style for active links can be applied when a link becomes active once you click on it.
  • The set of rules have to follow in CSS links such as styles and link states.
    • a: hover MUST come after a: link and a: visited
    • a: active MUST come after a: hover
  • The styles which can be used are shown below: 
    • Color
    • background-color
    • border-color 
    • outline color