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

Alfred Colmenares
Alfred Colmenares
789 Points

need help with this i need to create links for the list items below and it is not taking my answers.

i am stuck in this challenge please help.

index.html
<!DOCTYPE html>
<html>
  <head>
    <title>Lists and Links</title>
  </head>
  <body>
    <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>


  </body>
</html>

Hi, I think you're missing </a>, the closing tag for the <a>. Try add like this (*after the Cakes, Pies, and Candy) :

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

Alfred Colmenares
Alfred Colmenares
789 Points

i did this and still not working <li><a href="cakes.html">cakes<a/></li>

i think it is something else?

this is the challenge question Challenge Task 2 of 2 Make the text inside each list item a link. The first item should link to cakes.html, the second to pies.html and the third to candy.html.

help guys

Hi Alfred, the closing tag for <a> should be </a>, NOT like this <a/>. You just need to change the " / "position

Stanley Nkosi
Stanley Nkosi
4,233 Points

Hi Goh, T hank you for the answer.I have done exactly what you have done. I think,its something else and I want to move.I cannot wait here for ages and ages .All the same,Goh thanks.

4 Answers

Hey Alfred! You are actually correct. You can refresh the page because I did so and it accepted the code.

Alfred Colmenares
Alfred Colmenares
789 Points

Hi my friend. I did but still not working. Do you see anything else

Try this answer, I have redo the task for you already. Try compare my answer, hope can fix your problem

<!DOCTYPE html> <html> <head> <title>Lists and Links</title> </head> <body> <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>

</body> </html>

Alfred Colmenares
Alfred Colmenares
789 Points

still not letting me pass the challenge, would it be a glithch possibly? look at the above script that is how i have it and i have done everything correctly and stil not letting me.

You welcome Alfred.