css visited link color code example

Example 1: remove styling from a tag

a, a:hover, a:focus, a:active {
      text-decoration: none;
      color: inherit;
 }

Example 2: css url do not change color of visited links

a {
    text-decoration: none;
}

a:link, a:visited {
    color: blue;
}

a:hover {
    color: red;
}

Example 3: how to remove link blue color from a tag using css

a, a:hover, a:focus, a:active {
      text-decoration: none;
      color: inherit;
}

Example 4: how to change hyperlink color in css

a {
  background-color: red;
  color: white;
  padding: 1em 1.5em;
  text-decoration: none;
  text-transform: uppercase;
}

Example 5: css link visited

a:visited {
  color: pink;
}

Tags:

Css Example