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
Eric Washington
iOS Development with Swift Techdegree Student 21,884 PointsOrdered and Unordered List
Can someone help me figure this out please? I have provided my submitted answer below.
Question:
Add the items "Square" and "Circle" to the list nested under "Shapes".
Answer:
<ul>
<li>Shapes
<ol>
<li>Stop</li>
<li>Drop</li>
<li>Roll</li>
</ol>
<ul>
<li>Square</li>
<li>Circle</li>
</ul>
</li>
<li>Colors</li>
3 Answers
Codie Mullins
2,814 PointsEric,
It is also important that an HTML tags for unordered list (<ul>), ordered list (<ol>), and list item (<li>) have matching closing tags. To check to see if your code has this indentation is very helpful. It appears you are missing a closing tag. Below is your same code re-posted with some additional indentation, this may help you spot the error:
<ul>
<li>Shapes
<ol>
<li>Stop</li>
<li>Drop</li>
<li>Roll</li>
</ol>
<ul>
<li>Square</li>
<li>Circle</li>
</ul>
</li>
<li>Colors</li>
Nikhil Ghedia
Courses Plus Student 1,095 PointsNo problem James.. it would have been great if you could have led by example though. surely you should also assist to educate instead of just moderate.
Eric - i believe the ordered list in the list item 'shapes' is your issue
Nikhil Ghedia
Courses Plus Student 1,095 Pointscode removed
Eric Washington
iOS Development with Swift Techdegree Student 21,884 Pointsit doesnt work
James Barnett
39,199 PointsNikhil Ghedia - I've removed your code. Please remember here are on the forum we don't like to away the answers. Instead we like to give hints and explanations.
Remember the goal of this forum is to help fellow Treehouse users learn how to solve their own issues, not to get them past a particular code challenge.
Eric Washington
iOS Development with Swift Techdegree Student 21,884 PointsWell, James can you provide me with any feedback on this please?
James Barnett
39,199 PointsThis challenge has 6 parts you seem to have wondered off the path (so to speak) between parts 4 & 5. So re-trace your steps and go back to a point where you have a valid HTML list.
- Create Ordered List
- Add Items to Ordered List
- Create Unordered List
- Add Items to Unordered List
- Add Nested Ordered list
- Add items to Nested Ordered list
Once you've got the code to complete part 4, then we need to talk how we make a nested list for part 5.
Building a nested list is fairly simple. Determine where a nested list should appear, and rather than closing a list item, begin a new list. Once the nested list is complete, close the wrapping list item and continue on with the original list.
Let us know in this thread how you are getting along. Remember to post your code here if you need anymore help, here's a great primer on how to post code of the forum.
Eric Washington
iOS Development with Swift Techdegree Student 21,884 PointsI figured out where I went wrong. Thanks for all your help James & Nikhil. I had to start over from step one to figure out my mistake. I was such in a rush to complete the assignment that I didn't read the directions correctly. lol Thanks for erasing the answer because I would've never learned how to figure it out the proper way.
Eric Washington
iOS Development with Swift Techdegree Student 21,884 PointsEric Washington
iOS Development with Swift Techdegree Student 21,884 PointsI figured it out bro. Thanks for your help. I really appreciate it.