Solution 1 :

After using text-decoration elememt it will show you same color after visit.

text-decoration: none;
<a href="" class="a">Google</a>

Problem :

I would like to override a href tag default’s visited color property to inherit. However by making this change, every time I click on the link, it changes the color to its parent and not the one I set on it. To overcome this, I use a span to act as a parent element and set the color I want there. I would like to know if this is best practice or if there is any easier way to do it.


Comment posted by How to Ask

How to Ask

Comment posted by Codepen

Your question is not clear so please if it’s not what you asked then just comment on it and I’ll remove it, but as I understood you want to make the

Comment posted by minimal reproducible example

You should include a