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!

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

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??

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

1 Answer

Jennifer Nordell
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!