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 toun order a list under <body>

help me plz

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



  </body>
</html>

2 Answers

-- --
-- --
12,382 Points

Hi Riccardo,

The HTML tags for an unordered list are: <ul></ul> (the tags for the ordered list are <ol></ol>). You can put list items into the list by writing the following between the <ul> or <ol> tags: <li>This is a list item</li>.

So, to create an unordered list in the <body>, you write the following between the <body> tags:

<ul>
   <li>Item One</li>
   <li>Item Two</li>
   <li>Item Three</li>
</ul>

Hope this helps! :)

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Hi Riccardo,

So there are 2 types of lists in HTML. There's ordered lists <ol> and unordered list <ul>. The difference being one gives you bulleted numbers and the other one, does not. No numbered order to the list.

Each one has <li> as it's child element, which in turn can have more list item elements as children.

If you want an unordered list you need something like this

<ul>
<li></li>
</ul>

Providing as many list items with text content as the code challenge asks for! :-)

thnks man