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

Hey! I'm getting this error on my code: Bummer: You need to set the 'href' attribute of the second <a> element to 'pies

I'm not sure what I'm doing wrong, I checked the link and it's the correct one

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

1 Answer

Heidi Fryzell
seal-mask
MOD
.a{fill-rule:evenodd;}techdegree seal-36
Heidi Fryzell
Front End Web Development Treehouse Moderator 25,178 Points

Hi Laura,

It looks like you forgot to close your <a> tags. If you add in a closing tag </a> after the link text I think it will work.

Also noticed on your target attributes you forgot to put the quotation marks around the "_blank".

The instructions did not say to add the target attributes. So after you fix the closing </a> tags, if it still doesn't pass, you might want to remove the target attributes.

Hope this helps and happy coding! Heidi