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 trial

HTML HTML Basics Getting Started with HTML Lists and Links Challenge

I think there is a bug here.

It tells me to make the second <a href> to "pies.html" and my code looks like this:

index.html
<!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>

Looks 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.

3 Answers

Meicki Jeldal
Meicki Jeldal
1,446 Points

You need to indent the <li> outside the <a> not inside.

Aaaaah thank you :)

Thanks :D ItΒ΄s working now :)

Meicki Jeldal
Meicki Jeldal
1,446 Points

Sounds great please mark the question solved =)

How can I mark the question as solved?

Meicki Jeldal
Meicki Jeldal
1,446 Points

Yousee Canada upvote a comment og click best answer i Think in the right side og a comment