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

task 2

add three list item tags to the unordered list,and list three places u have or would like to visit

index.html
<!doctype html>
<html>
  <head>
    <title>List Example</title>
  </head>
  <body>

    <ul>       </ul>
  </body>
</html>

1 Answer

Nathan Tallack
Nathan Tallack
22,160 Points

So you are going to want to use the <li></li> tags inside the <ul></ul> tags. Basically the ol (ordered list) and ul (unordered list) can take li (list items) inside them.

Your code could look like this.

<!doctype html>
<html>
  <head>
    <title>List Example</title>
  </head>
  <body>
    <ul>
      <li>Sydney</li>
      <li>London</li>
      <li>Moscow</li>
    </ul>
  </body>
</html>

Keep up the great work! :)