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 put the right link "pies.html", but the system keep rejecting my answer.

There is a bug int he systm. Thank you.

index.html
<!DOCTYPE html>
<html>
  <head>
    <title>Lists and Links</title>
  </head>
  <body>
  <ul>
    <a href="cakes.html"><li> Cakes</li></a>
     <a href="candy.html"><li>Candy</li></a>
     <a href="pies.html"><li>Pies</li></a>
   </ul>

  </body>
</html>

3 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi Elysee,

Sorry, there is no bug in the task.

You are on the right track, but there are a few things a bit off track with your HTML.

  • First, The task never asked you to have Text for the links, so those should be deleted.
  • Second, Remember, the only direct child of a list can be a list item (<li>), but right now, you have an anchor element as the direct child and your list element is inside your anchor element. You'll need to flip around your <a> tags and <li> tags.
  • Finally, check the order of the links the challenge is asking for. You have "cakes", "candy", "pies", but the instruction specifically ask for "cakes", "pies", "candy". Remember, challenges and the instruction are very specific and the code checker is very picky... any deviation will result in a Bummer! even if the syntax is correct.

I'm sure you can get it now with these hints.

Keep Coding! :) :dizzy:

The question asks you to Make the text inside each list item a link which you havent quite done. The <a> tags must be inside the <li> tags. The candy and pie links are also in the wrong places.

  <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>
Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

Hi richporter,

It is best practice in the Community to not provide the correct code snippet in a reply. This is actually frowned upon and not supported by Treehouse. Giving hints and explanations (as I have in my reply above) is the accepted way to help in the Community.
Please keep this in mind for future replies.

Thank you for your cooperation and participation! :)

Jason Anders
~Treehouse Community Moderator

Thank you very much guys!