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

Spread the love

Sometimes, we want to remove the default link color of the HTML hyperlink ‘a’ tag.

In this article, we’ll look at how to remove the default link color of the HTML hyperlink ‘a’ tag.

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

To remove the default link color of the HTML hyperlink ‘a’ tag, we set its color CSS property.

For instance, we write

a {
  color: inherit;
}

to set the a element’s color to inherit to make it take the color of its parent element.

Conclusion

To remove the default link color of the HTML hyperlink ‘a’ tag, we set its color CSS property.

Leave a Reply

Your email address will not be published. Required fields are marked *