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

Jasper Maljers
Jasper Maljers
615 Points

hey, the bulletin says that I still have to change something to the thing that it already is.

I have done everything correctly and it still says that I have to change something into the thing which it already is. I cant progress to the next question

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>

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi Jasper,

You're on the right track, but there are a couple of things wrong here:

  1. Instructions are very specific and need to be followed exactly. With that said, you have a typo for the "Pies." In the link, you have an upper-cased "Pies.html" when it needs to be lower-cased (as per the instructions) "pies.html"
  2. The links (<a> tags) need to be inside of the list (<li>) elements. In fact, in HTML, only <li> tags can be direct descendants of <ol> or <ul> elements. So, you just need to flip those around.

Below is the corrected code for you to review and compare to the notes above.

<body>
    <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> 
  </body>

Keep Coding! :) :dizzy: