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 code for creating ol and ul lists!

I'm completely stuck on the every last "Challenge Task" question in the "HTML List" category.

The question is:

"Add the items "Square" and "Circle" to the list nested under "Shapes"."

I have tried every "List" code possible and I can't move beyond this point. Is this a trick question? I'm not comprehending the question? Please help!

My code:

<ul>
  <li>Shapes
   <ul>
      <li>Square</li>
      <li>Circle
   </ul>
   </li>                  
   <li>Colors</li>
</ul>

-

6 Answers

Hey Marcus, I think that you need to nest a new list in the shapes list.

Just make sure to create a new unordered/ordered list before closing the <li> tag in 'Shapes'.

Hey Ibrahim Rodrí­guez - I removed your code because we like to stick to hints, like the great one you gave.

And we try to stay away from giving away the answers, because we want students to learn how to solve their own issues not just get past a code challenge.

P.S. - I up voted the edited answer because I think it's an extremely useful hint.

You forgot to close the <li> for circle.

Could you post your code?

[[ed. note] - Code moved to original post

<ol>
<li>example</li>
<li>example2</li>
</ol>

rewatch the videos

swap the </ul> and </li>