The default link color is blue. How to remove the default link color of the html hyperlink tag <a>?
<a>
The inherit value:
a { color: inherit; }
… will cause the element to take on the colour of its parent (which is what I think you are looking for).
A live demo follows:
<p>The default color of the html element is black. The default colour of the body and of a paragraph is inherited. This <a href="http://example.com">link</a> would normally take on the default link or visited color, but has been styled to inherit the color from the paragraph.</p>
2.1m questions
2.1m answers
60 comments
57.0k users