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
Mark Brady
6,239 PointsHow to put a ul inside a ul for a small sublist.
This is my code, but the html validation is saying the ul can't be the child of the ul element and it's throwing an error. Any ideas how to fix this?
<main class="flex">
<div class="card">
<h2>Experience</h2>
<ul>
<li>ARISE Certified</li>
<li>Bible Worker for eight months</li>
<li>Forgien Missionary to the Island of Palawan</li>
<ul>
<li>Lived in the mountains</li>
<li>Learned thier language</li>
<li>Learned how to problem solve when things went wrong (ex: no water) </li>
</ul>
<li>HTML coding for two months</li>
<li>CSS coding for one month</li>
<li>Started the TechDegree through TeamTreeHouse on September 14th of 2016</li>
</ul>
</div>
2 Answers
Sue Johnson
16,648 PointsYour ul tag needs to be a child of the li tag like this:
<ul>
<li>Item 1</li>
<li>
<ul>
<li>Child item 1</li>
<li>Child item 2</li>
</ul>
</li>
<li>Item 3</li>
</ul>
Moises Miguel
5,028 PointsI don't think you have a closing </ul> tag for your first one
Mark Brady
6,239 PointsMark Brady
6,239 PointsThank you for your quick response! It helped me a lot!