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

Michaela Babic
Michaela Babic
7,720 Points

Made corrections to this one and its still not passing...

It keeps telling me I need to set the href of the second line item to pies.html and I can't spot whats wrong with it.

index.html
<!DOCTYPE html>
<html>
  <head>
    <title>Lists and Links</title>
  </head>
  <body>

  <ul>
    <a href= "cakes.html"></a><li>Cakes</li>
    <a href= "pies.html"></a><li>Pies</li>
    <a href= "candy.html"></a><li>Candy</li>
  </ul>

  </body>
</html>

1 Answer

Birte Müller
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Birte Müller
Front End Web Development Techdegree Graduate 16,026 Points

Hi Michaela, currently, your a and li elements are separated from each other. Try to nest the a element inside the li element and link the text inside, like this <li><a href= "cakes.html">Cakes</a></li>

Cheers Birte