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!
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

marsha spell
Courses Plus Student 5,555 Pointshelp please
Add a nested ordered list to the "Shapes" list item.can someone show me how I do this please

Milagro Scardigno
4,494 Points<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

Milagro Scardigno
4,494 Points<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
Treehouse TeacherHi 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. :)

Milagro Scardigno
4,494 PointsThanks!

Milagro Scardigno
4,494 PointsSpaces? Just tried it and did not work :(

marsha spell
Courses Plus Student 5,555 Pointshere 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

Milagro Scardigno
4,494 Points<ul> <li>Shapes <ol>Square</ol> <ol>Circle</ol> </li> <li>Colors <ol>first item</ol> <ol>first item</ol> </li> </ul>

Milagro Scardigno
4,494 PointsSorry I keep having problems on trying to post it with the correct HTML format.

James Barnett
39,199 PointsSorry 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

Milagro Scardigno
4,494 PointsIt is easy. Just try watching the videos again. Good luck!

Marcus Tisäter
4,886 PointsI 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!

Milagro Scardigno
4,494 Pointsdef my_method(syntax)
syntax.is_highlighted?
end
Milagro Scardigno
4,494 PointsMilagro Scardigno
4,494 Points<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>