educative.io

Pseudo-class :visited is not applied to links

Hi, I’ve changed the links exercise with this CSS but after clicking on the second link the color doesn’t change to brown:

a {
    color: pink;
}

a:link {
    color: green;
}

a:visited {
    color: black;
}

a:hover {
    color: gold;
}

a:active {
    color: greenyellow;
}

Course: https://www.educative.io/collection/5191711974227968/5641332169113600
Lesson: https://www.educative.io/collection/page/5191711974227968/5641332169113600/5740423507083264

Hi @Marco_Galluzzi
Thank you for reaching out to the Educative Team.

Here is the CSS file I used


and as you can see I have changed the visited site color to brown. And when I click on the 2nd link it should turn brown like in the below picture it does

I hope it helps. If you still need any assistance feel free to reach out.

1 Like