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

Code Challenge:Images and Lists

Probably being a little bit stupid but trying to do this code challenge and keep getting stuck. Code challenge asks for Add the items "About", "Cupcakes", and "Locations" to the unordered list. I have done this using below and it shows nicely in the picture next to it but wont let me proceed. Can you tell me what i'm missing?

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

Cheers

Hi Iain,

I had the 'problem' yesterday!

The way I proceeded was to remove my items completely and just list the items they asked for.

Hope this might help!

5 Answers

Can't see your mark up. You need to indent the code by 4 space or 1tab and make sure there is an empty line above and below. Did you typed in

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

In the previous question it accepts

<ul>
<ul>

rather than:

<ul>
</ul>

which is what I think it should be.

Well I guess the previous question might be of something else and it didn't even check for

<ul>

Or there is a bug in the system.

Sorry how do I show mark up?

I say that because the above isn't working.

The code that Abhay posted is correct in response to the directions you posted. Either you have not completely described what needs to be done or you aren't reading the directions correctly.

To post code create a new block and indent it by four spaces.

In the previous question it accepts

<ul>
<ul>

rather than:

<ul>
</ul>

which is what I think it should be.

I have just retaken the challenge and the code is

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

please note: <ul> <ul>

is not acceptable because you have to close the tag </li>

Yeah I get that but In the previous question it says:

Add an empty unordered list below the image.

if i type:

<ul>
</ul>

It says: Bummer! Make sure to use a ul tag!

I have just retaken the challenge and used the

<ul>
</ul>

and it passed me ok!!

Very strange!

Here is a thread on how to display code in the forum.

Thanks, easy if you know how!