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 How to Make a Website Creating HTML Content Create Navigation with Lists

nav ul

I have the ul nested in the nav but it keeps giving me a error

7 Answers

James Barnett
James Barnett
39,199 Points

A list (i.e. <ul> or <ol> ) can only contain have a direct child of an li element

So your nested <ol> needs to be nested inside a <li>.

Like this:

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

Moz Developer Guide to List

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Hi paul kinsley,

Can you paste your code into a comment here? That will help us figure out what's wrong. :)

Marcus H
Marcus H
4,267 Points

I'm having the same problem I think

'''<nav> <ul> <li>Portfolio</li>
<li>About</li> <li>Contact</li> </ul> </nav>'''

error code is : Bummer! null

Marcus H
Marcus H
4,267 Points

I'm having the same problem I think

'''<nav> <ul> <li>Portfolio</li>
<li>About</li> <li>Contact</li> </ul> </nav>'''

error code is : Bummer! null

<a href="index.html"> <nav> <ul> <li>Portfolio</li> <li>About</li> <li>Contact</li> </ul> </nav> <h1>Nick Pettit</h1> <h2>Designer</h2> </a>

Marcus H
Marcus H
4,267 Points

I'm having the same problem I think.

<nav>
          <ul>
            <li>Portfolio</li>  
            <li>About</li>
            <li>Contact</li>
          </ul>
   </nav>

error code is : Bummer! null

edit: sorry about all the replies above, got the code wrong and couldn't delete them.

Yes its the same problem Marcus is having right there

Marcus H
Marcus H
4,267 Points

I made another thread about the same thing. I got 2 replies from other users and they both seem to think it's a bug (it is a brand new course after all). So we just got wait till one of the higher ups notices either one of our threads and fixes it.

Yeah thats what I figured. Thanks Marcus for the help

Marcus H
Marcus H
4,267 Points

I gave up doing the project last night but just realised you can just go to the next video so I'll come back to that challenge when it's been fixed (I need them points).

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Hi paul kinsley and Marcus H

That's really strange you're getting an error. I just pasted in this code into that Code Challenge task, and it passed.

I'll notify our developers so we can look into it. I apologize for the frustration and appreciate you asking for help on the forum. I'll update this post with new information as it becomes available.

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Hi everyone,

It looks like we were experiencing some issues with our code challenges this weekend. If you try it again it should work now. If for some reason it doesn't please let us know and we'll look into it further. We're really sorry for this and appreciate you all being patient with us.