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!
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
Site is claiming that I made a mistake on the second link. I have no idea what is wrong.
<li><a href="cakes.html">Cakes</li> <li><a href="pies.html">Pies</li> <li><a href="candy.html">Candy</li>
Claims that the pies input is incorrect. It would be great if i could get the correct code presented instead of nothing.
<!DOCTYPE html> <html> <head> <title>Lists and Links</title> </head> <body> <ul> <li><a href="cakes.html">Cakes</li> <li><a href="pies.html">Pies</li> <li><a href="candy.html">Candy</li> </ul> </body> </html>
Jason AndersTreehouse Moderator 145,855 Points
If you look at the code when you have it in the challenge, you will notice red squiggly lines under the </li> tags for all three lines. This means there is a syntax error in all three lines. The challenge is only pointing out the first one, because once that error is reached the rendering stops.
Here, on all three lines, you haven't closed the anchor tags. You have opening and closing <li> tags, but only opening <a> tags. Each one will need to be closed, so the line will be like
Hope that helps :)