Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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,489 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,489 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,489 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; }