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 trialMary Urban
6,321 PointsHTML Basics Course - Lists & Links Challenge task 2
Hi,
It says I need to make the second <a> "pies.html", but it looks to me like I have, don't know why it won't pass. Thanks
<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>
<!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
Jerehme Gayle
5,206 PointsHello Mary,
You are on the right track, the only thing is is that each list item <li> needs to be a link. So the list item should wrap the link and will look like this <li><a href="link.html">link text</a></li>.
SPOILER
Below is the code that passed for me...
<ul>
<li><a href="cakes.html">Cakes</a></li>
<li><a href="pies.html">Pies</a></li>
<li><a href="candy.html">Candy</a></li>
</ul>
Happy Coding!
Dale Severude
Full Stack JavaScript Techdegree Graduate 71,350 PointsYou have the list item inside of the anchor, but the anchor should be inside the list item.
HAFIZ AHMED
3,021 PointsHi Guys anyone who can help me in this regard I couldn't get if someone can help I have been sitting almost 3 hours I have done all the possibilities. This is last I have done now but looks like mission impossible <li><a href="cakes.html"cakes></a><li>
Mary Urban
6,321 PointsGreat - thanks!