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

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,814 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,814 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!!!