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

Timothy Vreeland
Timothy Vreeland
2,194 Points

Text Editors & HTML course, issues w Code Challenge: 'Images and Lists'

I'm having trouble with task 4/4 of this code challenge. It's asking me to 'Add the items "About", "Cupcakes", and "Locations" to the unordered list.' I've tried everything that I can think of to correct it, but it keeps saying "Bummer! Add three list elements to the ordered list."

<ul>
    <li><a href="#">About</a></li>
    <li><a href="#">Cupcakes</a></li>
    <li><a href="#">Locations</a></li>

<ul>

One thing I noticed is it asks me to enter the items into the "unordered list" and the alert says "ordered list". Any tips would be awesome. There was a post on this 5 months ago, but the answers on there didn't help me. Thanks.

4 Answers

Timothy Vreeland
Timothy Vreeland
2,194 Points

Can you show me what that would look like? I tried just deleting them and it didn't work. Thanks.

Chase Lee
Chase Lee
29,275 Points

It would look like this: `<ul> <li>About</li> <li>Cupcakes</li> <li>Locations</li>

<ul>`

Elliott Frazier
Elliott Frazier
Courses Plus Student 9,647 Points

It would look like this:

<ul>
<li>About</li>
<li>Cupcakes</li>
<li>Locations</li>
</ul>
Elliott Frazier
Elliott Frazier
Courses Plus Student 9,647 Points

P.S. I did the code challenge correctly and you indeed need a ul tag not a ol.

Chase Lee
Chase Lee
29,275 Points

Do what Elliott Frazier said and also try changing the list to an ordered list.

Chase Lee
Chase Lee
29,275 Points

`<ul> <li>About</li> <li>Cupcakes</li> <li>Locations</li>

<ul>`

Hi Timothy,

I believe you should be adding them to an ordered list ol instead of an unordered list ul. Also the anchor tag a isn't required for this example. See below for a simple ordered list without the anchor tag, note this isn't your solution as Treehouse prefers that we don't provide the actual solution on the forum. I do believe it will help to resolve the issue:

<ol>
    <li>Chocolate</li>
    <li>Vanilla</li>
    <li>Hazlenut</li>
</ol>

Good luck on this. Let me know if you need any more help!

Timothy Vreeland
Timothy Vreeland
2,194 Points

Hey Codie,

Thanks for the reply. I changed the code to reflect what you had above, with my links of course, but it still didn't work. It does have to be an unordered list because when I change it to an ordered list it flags the previous challenge as being wrong. I'm stumped at this point of what the answer is.

Timothy Vreeland
Timothy Vreeland
2,194 Points

Alrighty, so I solved the issue. Originally I didn't add an ">" after my ".jpg" so the challenge thought the list and the image were together. After adding it I passed the challenge. This is funny since the challenge marked it correct when I added the pic. Anyhow, thanks to everyone for the replies. They all got me thinking and helped me solve it.

OMG! thanks! I was doing the same thing. It was driving me crazy LOL