Link does not become "unvisited" again after refreshing the page. Why is that?

788 Views Asked by At

I used the a:visited pseudo-class in CSS. The problem is when I refresh the page, the links still stays red, so they do not become "unvisited", that is to say blue again. Is that normal? Can I do something about it?

1

There are 1 best solutions below

0
On

First of all: Welcome!

The :visited pseudo class marks every link that has been visited in the browsing history of the user. That means, that even after you reload the page the link stays "visited". An example is the google search, where visited links are purple. They only change back when clearing the browsing history.

This might not help you, since you didn't give any details regarding your environment but you could try to use the :active or :focus pseudo classes.