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

images and lists

i am having trouble on the part when it asks you to add the things to the list such as about us cupcakes and location

Add the items "About", "Cupcakes", and "Locations" to the unordered list. Important: The code you write in each task should be added to the code written in the previous task. <ul> <li>About</li> <li>Cupcakes</li> <li>locations</li> <ul>

7 Answers

Your ul and li tags should not have dashes in them. They should look like this:

<ul> </ul>

If I remember correctly, then the first challenge was just to create an unordered list. Here's what your code should look like:

<ul>
<li>Item1</li>
<li>item2</li>
<li>item3</li>
</ul>

Try this with the item between the tags substituted with about, cupcakes, etc.

If I solved your problem, please click Best Answer.

hey thanks for the help man i was doing that and for some reason when i put the dash in it said it was doing wrong till today . that's why i couldn't understand . i think it might of been cause the indention was off or something

Glad to help Ben.

I'm assuming that you're creating an unordered list with three items in it. If so, you should have an opening and closing ul tag. Between those you should have three opening and closing li tags. Between each of those li tags you should have one of the items they tell you to add. There should be no spaces between the li tags and the item. If that doesn't help, I'll try to explain a little better.

If I solved your problem, please click Best Answer

i tried this and it didn't work

<-ul-> <-l-i->-about-<-/-l-i-> <-l-i->-cupcakes-<-/-l-i-> <-l-i->locations<-/-l-i>

A list needs a closed <ul> tag as well as closing the <li> tags. See below:

<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>

when i do that it then says the prev question is wrong it is telling me to leave that ending ul with out a /

Can you post the question and what you have so far?

Add the items "About", "Cupcakes", and "Locations" to the unordered list. Important: The code you write in each task should be added to the code written in the previous task.

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

<ul> <li>About</li> <li>Cupcakes</li> <li>locations</li> <ul>

Add the items "About", "Cupcakes", and "Locations" to the unordered list. Important: The code you write in each task should be added to the code written in the previous task. Recheck Work Bummer! Add three list elements to the ordered list.

index.html

1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 5 <title>Smells Like Bakin' Cupcake Company</title> 6 </head> 7

8 <body> 9 <img src="img/cupcake.jpg" alt="Smells Like Bakin'" 10 <ul> 11 <li>about</li> 12 <li>Cupcakes</li> 13 <li>Locations</li>
14 <ul> 15 </body> 16 </html> 17

If you are still having problems with this can you please paste all of your code here.

If you need help posting formatted code here is a handy guide to the various ways to format code here on the forum. (Thanks to James Barnett for the link!)

..... <!DOCTYPE HTML> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>smells like bakin' cupcake company</title> </head> <body> <img src="my pictures/logo.gif" alt="smells like bakin'" <ul> <li>about</li> <li>cupcakes</li> <li>locations</li> </ul> </body> </html>

I can't get this either here is my code: <ul> <li>About</li> <li>Cupcakes</li> <li>Locations</li> <ul/>
<body/>

Greg Bien-Aime Indent each line of code four spaces for it to show up. Then re-post it so we can see what you're working with.

Okay thanks!!