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

Donny McPherson
Donny McPherson
172 Points

What am I doing wrong?

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

2 Answers

Steven Parker
Steven Parker
210,422 Points

It looks like you're working on task 2, but task 1 said "Convert the text inside the <body> tags into an unordered list." At that point, the body contents were just the three words "Cakes", "Pies", and "Candy". So at the end of task 1 you should have had just one new unordered list, with each of those words tagged as a list item inside it.

Then for task 2 you will only convert those three list items into links. You won't add any more lists (there seem to be two here now, one before and one after what should be the real one).

makes sense, I guess I was looking at the whole page.