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

I am inputting the index.html, and keeps saying I am incorrect even though I have watched the video over five times.

It is step 3 of the quiz

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Katelyn,

Can you tell us exactly what your being asked to do, maybe paste the question.

Thanks

2 Answers

Blaize Pennington
Blaize Pennington
13,879 Points

This step is all about building navigation lists. The first step this code challenge asks you to do is to add the nav element. That can be simply done with <nav></nav>. Nav is an HTML 5 element that allows for more CSS customization that you will learn later. Then it asks you to put an unordered list inside without the list items. This will be done with <ul></ul> inside your nav tags.

The next step is to add the list items. List items are marked with <li> and are closed after the text with </li> you may have as many list items as you want, but this challenge is asking you to have 3.

The final step is to add the links. You start with an anchor tag <a> and add the attribute href="FILE PATH" then you have the words you would like to link followed by the closing </a> tag.

Your final code should look something like this:

<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>

Thank You!!