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 trialtor magne brekken
4,080 PointsFix your site!!!!!
<!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>
that is right yes? the sites says that i dont have a link on cakes.html........ -.-
<!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>
3 Answers
Jennifer Nordell
Treehouse Teachertor magne brekken Hi there! You're actually doing quite well. The other answer left here by Aakash Srivastav is partially correct. You have forgotten to close a tag, but it's the anchor tags that arenΒ΄t being closed. This is true for all three of your list items.
You wrote:
<li><a href="cakes.html">Cakes</li>
But you meant to write:
<!-- note the closing </a> after Cakes -->
<li><a href="cakes.html">Cakes</a></li>
Hope this helps!
Aakash Srivastav
Full Stack JavaScript Techdegree Student 11,638 PointsHey , you have not closed that li
tag containing all the three li
tag inside it.
Try this :
<!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>
</li> // comment ---- close li first
</ul> // comment ---- then close ul
</body>
</html>
Jackie Santana
7,403 Pointsyou forget the closing anchor tag </a>
for example it should look like this <li><a href="cakes.html">Cakes</a></li>
that will create the actual link your looking for.
Aakash Srivastav
Full Stack JavaScript Techdegree Student 11,638 PointsAakash Srivastav
Full Stack JavaScript Techdegree Student 11,638 Pointsah thanks Jennifer Nordell :) . I skips those little anchors