CSS CSS Basics (2014) Basic Selectors Pseudo-Classes

Bryan Sory
Bryan Sory
1,978 Points

a:visited targeting not working on quiz

Pretty sure this is right. Any suggestions?

4 Answers

Maximiliane Quel
PLUS
Maximiliane Quel
Courses Plus Student 55,488 Points

I think you might have misread: the Challenge says to "Use the pseudo-class selector that targets default, unvisited links. Set their color value to orange."

/* Complete the challenge by writing CSS below */
a:link { color: orange; }
Maximiliane Quel
Maximiliane Quel
Courses Plus Student 55,488 Points

or is it the second challenge? sorry. I think you need to provide more info.

it is hard to tell, if you have an error in your syntax, when we can't see exactly what you tried. If you are referring to the second challenge then a:visited is the correct selector: Next, create a pseudo-class selector that targets all visited links. Add a color property and set the value to steelblue. So the issue must be somewhere else in your code.

If you want to compare with your solution, here is what your result should look like:

a:visited { color: steelblue; }

Hope this helps

a:visited{colour:steelblue;}

Maximiliane Quel
PLUS
Maximiliane Quel
Courses Plus Student 55,488 Points

You are writing colour the British way but the keyword is written without the u.

yep! your right "British" you caught me! hah

for it to work ...do something like this........

a:link { color:orange; } a:visited{ color: steelblue; }