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

i'm still not sure what i'm doing wrong. I feel like I've tried everything

still confused

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

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

  </body>
</html>

3 Answers

Trevor Johnson
Trevor Johnson
14,427 Points

Hey Ramon, try wrapping the text within the a. Also copy the link exactly like it is. Adding the http//www won't work because it is asking to link to a particular file not a site so keep it the way it gives you in the challenge.

 <ul>
   <li>
     <a href="cakes.html">Cakes</a>
     <li>
       <a href="pies.html">Pies</a></li>
   <li>
     <a href="candy.html">Candy</a></li>
   </ul>
Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey Ramon,

There are two things going wrong here.

  1. You are missing the closing </li> for the first item (Cakes)
  2. Instructions are meant to be taken explicitly and are very specific. For the second task, it asks you to link to cakes.html, pies.html, and candy.html, but you are linking to https//www.cakes.html, etc..

So, just add the closing tag and change your href values to match that of the instructions exactly and everything will pass.

Keep Coding!

:dizzy:

Hey Ramon, you not placing your <li></li> tags incorrectly and place the text between the the <a></a> tags. Remember to copy the exactly href given to you in the question

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