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 trialChris Gains
2,888 PointsCan anyone take a look at my code to question - Add a nested ordered list to the "Shapes" list item.
<dl> <ol> <li>Stop</li> <li>Drop</li> <li>Roll</li> </ol>
<ul> <li>Shapes</li> <ol> <li></li> </ol> <li>Colors</li> </ul> </dl>
7 Answers
Callum King
6,470 PointsThere is no code Chris? Use the 3 backticks (```) on the line before and after your code.
Chris Gains
2,888 PointsHi Callum
Here it is
<!DOCTYPE html> <html> <head> <title>HTML Lists Challenge</title> </head> <body>
<h1>HTML Lists Challenge</h1>
<!-- Write your code below -->
<dl>
<ol>
<li>Stop</li>
<li>Drop</li>
<li>Roll</li>
</ol>
<ul>
<li>Shapes</li>
<ol>
<li></li>
</ol>
<li>Colors</li>
<ul>
</dl>
</body> </html>
James Anwyl
Full Stack JavaScript Techdegree Graduate 49,960 PointsHi Chris,
Looks like you may be mixing different types of list together which is why its not working.
An unordered list looks like:
<ul>
<li>Example Content</li>
<li>Example Content 2</li>
</ul>
An ordered list looks like:
<ol>
<li>Example Content</li>
<li>Example Content 2</li>
</ol>
A definition list looks like:
<dl>
<dt>Title</dt>
<dd>Description</dd>
<dt>Title 2</dt>
<dd>Description 2</dd>
</dl>
A nested ordered list (an ordered list inside an ordered list), should look something like:
<ol>
<li>Content 1</li>
<li>Content 2:
<ol>
<li>Nested content 1</li>
<li>Nested content 2</li>
</ol>
</li>
<li>Content 3</li>
</ol>
Hope this helps!
Callum King
6,470 PointsThe ol tags should be within the li tags for the shapes list.
<ul>
<li>Shapes
<ol></ol>
</li>
<li>Colors</li>
</ul>
Chris Gains
2,888 PointsThanks guys
Chris Gains
2,888 PointsI was getting confused by adding the </li> after 'Shape'
Chris Gains
2,888 PointsI was getting confused by adding the </li> after 'Shape'