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

Gabriel Kierkegaard
Gabriel Kierkegaard
4,209 Points

List items, code challenge

Hi I'm having problem with the code challenge, and I can't figure out the problem. I'm supposed to make an unordered list. I've provided my code.

<!DOCTYPE html>
<html>
  <head>
    <title>Lists and Links</title>
  </head>
  <body>
    <li>
      <ul>Cakes</ul>
      <ul>Pies</ul>
      <ul>Candy</ul>
    </li> 
  </body>
</html>

1 Answer

You have the tags backwards. Use ul for the unordered list and li for the list items.

<!DOCTYPE html>
<html>
  <head>
    <title>Lists and Links</title>
  </head>
  <body>
    <ul>
      <li>Cakes</li>
      <li>Pies</li>
      <li>Candy</li>
    </ul> 
  </body>
</html>
Gabriel Kierkegaard
Gabriel Kierkegaard
4,209 Points

Aaah yeah, I can see that now. Thanks for pointing it out :)