Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML

A very beginner. I don't see the error regarding the links.

Challenge task was to make links from list each to cakes.html, pies.html, candy.html.

    <li><a href="cakes.html">Cakes</a></li>
    <li><a href="pies.html">Pies</a></li>
    <li><a href="candy.html">Candy</a></li>
<!DOCTYPE html>
<html>
  <head>
    <title>Lists and Links</title>
  </head>
  <body>
    <ul>
      <li>Cakes</li>
      <li>Pies</li>
      <li>Candy</li>
    </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>


  </body>
</html>

Mod Edit: Fixed code formatting. See comment for how to do this in your forum posts.

rydavim
rydavim
18,798 Points

When posting on the forums, you can format your code nicely using a bit of markdown.

```html

Your code here!

```

1 Answer

rydavim
rydavim
18,798 Points

Okay, so the good news is you're on the right track. Generally Treehouse challenges want you to build on your answer from the previous step. So in this case, you want to be changing the code from the first part.

<!DOCTYPE html>
<html>
  <head>
    <title>Lists and Links</title>
  </head>
  <body>
    <ul> <!-- This is the working code from the first part. Good job! -->
      <li>Cakes</li>
      <li>Pies</li>  <!-- You want to replace these normal list items with the link list items you did below. -->
      <li>Candy</li>
    </ul>

    <!-- This code is correct for the second part, but you've added it on instead of replacing the earlier code. -->
    <li><a href="cakes.html">Cakes</a></li> 
    <li><a href="pies.html">Pies</a></li>
    <li><a href="candy.html">Candy</a></li>
  </body>
</html>

Hopefully that gets you to a solution, but let me know if you're still having trouble and I'll be happy to answer any follow up questions. Nice work, and happy coding!

rydavim Thank you so much!!!