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 — <ul> </ul> discrepencies.

Hi guys,

I've been working through the beginning module for how to build a website, but when I come across step 4/4 in the code challenge for the "Images and Lists" section I receive an error stating:

add three list elements to the unordered list

However, my code is as follows

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

Perhaps someone can clarify at which point I failed to do so?

Thanks very much

Should be <ul class="nav"> after add the elements

3 Answers

Not sure if this will help, have you tried adding the list elements WITHOUT the 'a href'.

<li>About</li>

If that does not help, please post a link to the challenge.

I noticed this problem from the challenge before it won't accept </ul> at the end after messing around it accepted <ul/> But now I'm having a same problem with the challenge your on. When I get it wrong it says Add three list elements to the ORDERED LIST which is weird because above it says unordered. Very confusing.

Mike Kohl I've added elements with / without the 'href' to the same result — I've since moved past this phase of direcitonals and things seem to run a bit more smoothly in the following demos and quizzes, however I just wanted to bring it up for the sake of consistency and clarity.