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

Something I did on Challenge Q 3 made Challenge Q 2 no longer passing--is it me or a bug in the system?

I've tried this challenge 2 "Inside the navigation element, create 3 list items with the words Portfolio, About, Contact" twice now. I pass that, then do Q 3 and a message says Task 2 is no longer passing. Can't figure it out! Time to quit for the night!

4 Answers

1- Yes Cosmin, anchors can't be a child of a 'ul' so need to be 'inside' list items for W3 authentication.

2- Liz it's always something small that you do in Q3, for example, that messes up what you successfully did in Q2.

Check over it again with fresh eyes or paste your code on here. Search the forum to see how to paste code or check the cheatsheet below.

:-)

Sherry Parker
Sherry Parker
9,601 Points

I have had that happen a few times too. I just redo the previous question with the same answer I gave before and then redo the one I got wrong. Not sure why it does that, could be a bug.

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Liz;

Here is what belongs between the header tags for that challenge. Nothing else in the html document changes:

 <header>
         <a href="index.html">
            <h1>Nick Pettit</h1>
            <h2>Designer</h2>
         </a>
         <nav>
            <ul>
              <a href="index.html"><li>Portfolio</li></a>
              <a href="about.html"><li>About</li></a>
              <a href="contact.html"><li>Contact</li></a>
            </ul>
         </nav>
    </header>
Cosmin Cioaclă
Cosmin Cioaclă
21,339 Points

Shouldn't the anchors be inside the list items?

Ken Alger
Ken Alger
Treehouse Teacher

Yup, you're correct. It was a late night, but it made it through the challenge engine... :(

CORRECTED:

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