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
Iain Murray
370 PointsCode 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
5 Answers
Abhay Sharma
8,287 PointsCan'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>
Iain Murray
370 PointsIn the previous question it accepts
<ul>
<ul>
rather than:
<ul>
</ul>
which is what I think it should be.
Abhay Sharma
8,287 PointsWell 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.
Iain Murray
370 PointsSorry how do I show mark up?
I say that because the above isn't working.
Tyler Williams
Courses Plus Student 170 PointsThe 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.
Iain Murray
370 PointsIn the previous question it accepts
<ul>
<ul>
rather than:
<ul>
</ul>
which is what I think it should be.
Alan Cousins
434 PointsI 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>
Iain Murray
370 PointsYeah 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!
Alan Cousins
434 PointsI have just retaken the challenge and used the
<ul>
</ul>
and it passed me ok!!
Very strange!
Chase Lee
29,275 PointsHere is a thread on how to display code in the forum.
Iain Murray
370 PointsThanks, easy if you know how!
Alan Cousins
434 PointsAlan Cousins
434 PointsHi 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!