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

How to nest OL in UL list?

I've reached a point of acute frustration on this task and would appreciate some help. I didn't see this specifically covered in the video, and Google search results aren't helping either. Having tried combination after combination, I have no idea how to do this.

<!DOCTYPE html> <html> <head> <title>HTML Lists Challenge</title> </head> <body>

<h1>HTML Lists Challenge</h1>

<ul>
  <li><ol>Shapes</ol></li>
    <li>Colors</li>

</ul>

<ol> <li>Stop</li> <li>Drop</li> <li>Roll</li> </ol>

!-- Write your code below -->

</body> </html>

3 Answers

geoffrey
geoffrey
28,736 Points

No worries, what I gave you is not the proper solution for the actual exersise, but the way you have to do it through the code challenge.

I 've just done it, I 've checked, It has passed the code challenge. It's not difficult as you can see.

      <ol>
          <li>Stop</li>
          <li>Drop</li>
         <li>Roll</li>
    </ol>

    <ul>
       <li>Shapes
         <ol>
           <li>Squares</li>
           <li>Circle</li>          
        </ol>
       </li>
      <li>Colors</li>
    </ul>

            ```
geoffrey
geoffrey
28,736 Points
<ul>

  <li> Unordered List1</li>
  <li> Unordered List2</li>
  <li> Unordered List3</li>
  <li> Unordered List4

      <ol>
        <li>Ordered list1</li>
        <li>Ordered list2</li>
        <li>Ordered list3</li>
       <li>Ordered list4</li>
    </ol>

</li>

</ul>

Check this link, google is your friend :)

http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_lists2

Hit "Best Answer" accidentally...this doesn't work... '''<ul> <li>Shapes <ol> <li>Colors</li> </ol> </li> </ul> '''

That actually helped. Thank you.