Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
This code doesn't make any sense.
<!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> <li> Colors</li> </ul> </body> </html>
What is it that you are finding difficult to grasp?
There's two seperate lists that will be displayed on the page, an ordered list <ol> and an unordered list<ul>.
<ol> <li> Stop</li> <li> Drop</li> <li> Roll</li> </ol>
So the ordered list starts with the <ol> tag. Then before the closing tag, there are three list item, which use the <li> tag.
The list items will be marked with numbers by default when rendered in the browser, e.g.
More info on ordered lists can be found here
<ul> <li> Shapes</li> <li> Colors</li> </ul>
The unordered list starts with the <ul> tag. Then before the closing tag, there are two list item, which again use the same <li> tag that was used in the ordered list.
The list items will be marked with a bullet-point by default when rendered in the browser, e.g.
More info on unordered lists can be found here
Hope this helps!
You can nest new lists within existing list items.
So after shapes you need to enter the tags for an ordered list. Like so:
<ul> <li>Shapes <ol> </ol> </li> <li>Colors</li> </ul>
These can then have their own list items which would render in the browser like: