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 trialAugusto Hernandes
1,818 PointsAdd three list item tags to the unordered list, and list three places you have visited or would like to visit.
I got the Challenge Task 1 of 2 correct, but can't seem to get this one.
<!doctype html>
<html>
<head>
<title>List Example</title>
</head>
<body>
<ul>Paris</ul>
<ul>London</ul>
</ul>Berlin</ul>
</body>
</html>
2 Answers
Ash Scott
435 PointsHey Augusto Hernandes!
You're formatting your list wrong. See my code below for an explanation, and correct formatting:
<ul> <!-- Begin the unordered list -->
<li>Paris</li> <!-- List item - single item within a list -->
<li>London</li>
<li>Berlin</li>
</ul> <!-- End the unordered list -->
So a <ul>
tells the browser "Hey, this is an unordered list". Each <li>
inside is a List Item (Hence the li). This means each <li>
will have a bullet point next to it, and is interpreted as something separate, in this case, places you've visited.
Hope this helps! Ash
Roberto Rivera
10,832 Points<li>Paris</li> <li>London</li> <li>Berlin</li>