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

HTML Introduction to HTML and CSS (2016) HTML: The Structural Foundation of Web Pages and Applications Test: Create an Unordered List

How do I add three list item tags to the unordered list, and list three places you have visited or would like to visit?

I do not know how to do this. I'm doing exactly as the video is showing it, and it's not working. PLEASE HELP!!

index.html
<!doctype html>
<html>
  <head>
    <title>List Example</title>
  </head>
  <body><ul>
  <li>Japan</li   
    <li>England</li>
    <li>California</li>
     </body></ul>
</html>

3 Answers

Mike Gugliuzza
Mike Gugliuzza
8,497 Points

Take at where your closing </ul> tag is- both the beginning and the end tags should remain within the body.

Matthew Tran
Matthew Tran
16,343 Points

You need to move the closing </ul> tag into the body. You can think of it as the unordered list is inside the body element of the page. Your code should look like this (ALSO: your closing </li> tag is missing the last bracket, so it is not closing properly:

<body>
  <ul>
    <li>Japan</li>   
    <li>England</li>
    <li>California</li>
  </ul>
</body>

<body> <ul> <li>china</li>
<li>Zimbabwe</li> <li>Britain</li> </ul> </body>