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.

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

how toun order a list under <body>

help me plz

<!doctype html>
    <title>List Example</title>


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:

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

Hope this helps! :)

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,040 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


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

thnks man