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 HTML Basics Getting Started with HTML Lists and Links Challenge

William Guasch
William Guasch
1,705 Points

It's telling me I need to set the second attribute to 'pies.html' which I seem to have unless I'm missing something??

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

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there, William Guasch! You're really close. The problem, as it so often is, is on the previous line. An anchor tag is not "self-closing". Each list item you have should have an <a> and a </a>.

So this:

<li><a href='cakes.html'>Cakes</li>

Should look like:

<li><a href='cakes.html'>Cakes</a></li>  <!-- Note  the </a>

That should be true for each line.

Hope this helps! :sparkles:

William Guasch
William Guasch
1,705 Points

Thank you, after looking at a lot of the other similar posts I figured it might be something small and silly that I was missing. Very much appreciate the help!