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

marsha spell
PLUS
marsha spell
Courses Plus Student 5,555 Points

help please

Add a nested ordered list to the "Shapes" list item.can someone show me how I do this please

<h1>HTML Lists Challenge</h1>

<!-- Write your code below --> <ol> <li>Stop</li> <li>Drop</li> <li>Roll</li> </ol>

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

<ul> <li><a href="#">Milk</a> <ul> <li><a href="#">Goat</a></li> <li><a href="#">Cow</a></li> </ul> </li> <li><a href="#">Eggs</a> <ul> <li><a href="#">Free-range</a></li> <li><a href="#">Other</a></li> </ul> </li> <li><a href="#">Cheese</a> <ul> <li><a href="#">Smelly</a></li> <li><a href="#">Extra smelly</a></li> </ul> </li> </ul>

5 Answers

<ul>
    <li><a href="#">Milk</a>
       <ul>
           <li><a href="#">Goat</a></li>
           <li><a href="#">Cow</a></li>
       </ul>
    </li>
    <li><a href="#">Eggs</a>
       <ul>
           <li><a href="#">Free-range</a></li>
           <li><a href="#">Other</a></li>
       </ul>
    </li>
    <li><a href="#">Cheese</a>
       <ul>
           <li><a href="#">Smelly</a></li>
           <li><a href="#">Extra smelly</a></li>
       </ul>
    </li>
</ul>
    <ul>
      <li>Shapes
        <ol>Square</ol>
        <ol>Circle</ol>
        </li>
        <li>Colors</li>
    </ul>
Nick Pettit
Nick Pettit
Treehouse Teacher

Hi Milagro,

In Markdown format, you need to add 4 spaces to the beginning of each line of code. Otherwise, it will just be interpreted as HTML by the browser.

I edited your post so that the code displays properly. :)

Thanks!

Spaces? Just tried it and did not work :(

marsha spell
PLUS
marsha spell
Courses Plus Student 5,555 Points

here is how i'm doing it could you show me how to write it out <li>Shapes</li> <li>Colors</li> </ul> <ol> <li>first item</li> <li>first item</li> <li>first item</li> <li>first item</li> </ol

<ul> <li>Shapes <ol>Square</ol> <ol>Circle</ol> </li> <li>Colors <ol>first item</ol> <ol>first item</ol> </li> </ul>

Sorry I keep having problems on trying to post it with the correct HTML format.

James Barnett
James Barnett
39,199 Points

Milagro Lopez -

Sorry I keep having problems on trying to post it with the correct HTML format.

Check out this primer on how to type code in the forum

It is easy. Just try watching the videos again. Good luck!

Marcus Tisäter
Marcus Tisäter
4,886 Points

I belive this is what you are looking for..

  <ul> 
    <li> I love
  <ol>
       <li>Vanilla </li>
       <li>Milk</li>
   </li>
  </ol>
 </ul>

It's really simple. You make a headlist which is the ul in this example and within the list you can make more lists!

def my_method(syntax)
  syntax.is_highlighted?
end