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 trialStefan Feldner
5,359 PointsI think there is a bug here.
It tells me to make the second <a href> to "pies.html" and my code looks like this:
<!DOCTYPE html>
<html>
<head>
<title>Lists and Links</title>
</head>
<body>
<ul>
<a href="cakes.html"><li>Cakes</li></a>
<a href="pies.html"><li>Pies</li></a>
<a href="candy.html"><li>Candy</li></a>
</ul>
</body>
</html>
3 Answers
Meicki Jeldal
1,446 PointsYou need to indent the <li> outside the <a> not inside.
Stefan Feldner
5,359 PointsAaaaah thank you :)
Stefan Feldner
5,359 PointsThanks :D ItΒ΄s working now :)
Meicki Jeldal
1,446 PointsSounds great please mark the question solved =)
Stefan Feldner
5,359 PointsHow can I mark the question as solved?
Meicki Jeldal
1,446 PointsYousee Canada upvote a comment og click best answer i Think in the right side og a comment
James Ackerman
14,099 PointsJames Ackerman
14,099 PointsLooks like you forgot the opening <li> tags before the anchor tags. So...
<li><a href="cakes.html">Cakes</a></li>
...instead of the other way around. In other words the anchor tags need to be nested inside the list item tags.