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 trialriccado gwaze
4,502 Pointshow toun order a list under <body>
help me plz
<!doctype html>
<html>
<head>
<title>List Example</title>
</head>
<body>
</body>
</html>
2 Answers
-- --
12,382 PointsHi 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
Treehouse Moderator 91,253 PointsHi 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! :-)
riccado gwaze
4,502 Pointsthnks man