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 trialDeanna Wellman
830 PointsText editor on a challenge not recognizing my element. Was instructed to make the list items a link.
See my code below. What am I missing? I'm seeing an error message for the second list item "pies.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>
1 Answer
Jason Anders
Treehouse Moderator 145,860 PointsHey Deanna,
You're on the right track. One thing to remember is when you get an error for a specific line, often it is the line prior that has the problem. Here, it's actually something missing on all 3 lines of the links... ==> You haven't closed the <a> tags (missing the </a> before the closing </li> for all three.
Once those are added, you're good to go. :)
Keep coding!
Deanna Wellman
830 PointsDeanna Wellman
830 PointsThank you!