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 trialBryan Sory
1,978 Pointsa:visited targeting not working on quiz
Pretty sure this is right. Any suggestions?
4 Answers
Maximiliane Quel
Courses Plus Student 55,489 PointsI 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
Courses Plus Student 55,489 Pointsor 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
Kevan Puddicombe
Courses Plus Student 2,845 Pointsa:visited{colour:steelblue;}
Maximiliane Quel
Courses Plus Student 55,489 PointsYou are writing colour the British way but the keyword is written without the u.
Kevan Puddicombe
Courses Plus Student 2,845 Pointsyep! your right "British" you caught me! hah
THAPELO MOKOKO
9,457 Pointsfor it to work ...do something like this........
a:link { color:orange; } a:visited{ color: steelblue; }
Maximiliane Quel
Courses Plus Student 55,489 PointsMaximiliane Quel
Courses Plus Student 55,489 Pointscan you paste the entire code you tried?