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 trialShannon Westberg
418 PointsIs this quiz incorrect?
It's saying the pies.html is incorrect. It doesn't seem to be.
Thanks.
<!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
Jennifer Nordell
Treehouse TeacherHi there! No, it's not incorrect. A list item is the only allowed immediate descendent of an ordered list. You're not far off, but you've gotten things a bit backwards. Currently, your links are around your list items, but they need to be inside your list items:
<!-- not this -->
<a><li></li></a>
<!-- but this -->
<li><a></a></li>
Hope this helps!
mikeashi
5,473 PointsI think you need to check that your Anchor tags are inside the list item tags
Shannon Westberg
418 PointsAwesome, thanks!