how to remove blue color from hyperlink in html?

how to remove blue color from hyperlink in html Set the text-decoration Property to none and Use Pseudo-Classes for Selection and Remove the box-shadow Property to Remove the Underline and Color From a Link in CSS.

how to remove blue color from hyperlink in html

How to remove the default link color of the html hyperlink ‘a’ tag?

a { color: inherit; } 

Free Live Chat for Any Issue

Remove Blue Underline From Link in CSS

Set the text-decoration Property to none Example Code:

<div class="container">
    <span class="welcomePost">Welcome Page</span>
    <a href="#"><span class="otherPage">Next Page</span></a>
</div>

.container a {
  color: #FF0000;
  text-decoration: none;
}

Use Pseudo-Classes for Selection

<span class="welcomePost">Welcome Page</span>
<a href="#"><span class="otherPage">Next Page</span></a>

a:link, a:visited,  a:hover, a:active
{
    color: #000000;
    text-decoration: none;
}

Remove the box-shadow Property

box-shadow: inset 0 -3px 0 0 #bdb;

<span class="welcomePost">Welcome Page</span>

.welcomePost {
  color: green;
  box-shadow: inset 0 -3px 0 0 red;
  box-shadow: none;
}

how to remove the blue link color in html?

remove styling from a tag

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

Don’t Miss : Remove Underline From Link Css

Download

I hope you get an idea about how to remove blue color from hyperlink in html.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.