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 trialHassan Kamal
Courses Plus Student 1,879 PointsIs there something wrong with Code Challenge or my coding? Please check below image link. http://snag.gy/jsDXt.jpg
Is there something wrong with Code Challenge or my coding?
Please check below image link. Thanks
<!DOCTYPE html>
<html>
<head>
<title>HTML Lists Challenge</title>
</head>
<body>
<h1>HTML Lists Challenge</h1>
<!-- Write your code below -->
<ol>
<li>Stop</li>
<li>Drop</li>
<li>Roll</li>
</ol>
<ul>
<li>Shapes</li>
<ol>
<li></li>
<li></li>
<li></li>
</ol>
<li>Colors</li>
</ul>
</body>
</html>
Hassan Kamal
Courses Plus Student 1,879 PointsHey Wajeeh Hassan Qureshi !!
I don't understand, Just did what you said and it works perfectly. if we use both methods (options 1 - as done by me and option 2 which you have suggested ) the result is the same on the browser.
so why dint the code challenge accept my option 1 ?
Option 1)
''
<ul>
<li>Shapes</li>
<ol>
<li></li>
<li></li>
<li></li>
</ol>
<li>Colors</li>
</ul>
</body>
''
Option 2)
'' <ul> <li>Shapes <ol> <li>Stop</li> <li>Drop</li> <li>Roll</li> </li> </ol> <li>Colors</li> </ul> </body> ''
1 Answer
Wajeeh Hassan Qureshi
8,631 PointsWell that's because, they're asking you to add the ordered list inside the actual li tag, in other words the Shapes item will have an ordered list of its own. The reason why yours didin't work because you placed it as a separate list outside of the list element, which means that it is not related to/ embedded in the "SHapes" list item.
Wajeeh Hassan Qureshi
8,631 PointsWajeeh Hassan Qureshi
8,631 PointsTry adding the ordered list inside the "Shapes" list item tag.