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

lee F
lee F
1,564 Points

help me quick

this bloody thing aint working its saying portfolio isnt linking to index.html...

<li><a href="index.html">Portfolio</a></li>
         <li><a href="about.html">About</a></li>
          <li><a href="contact.html">Contact</a></li>

Hi Lee,

What you've written looks correct to me. Is there an error you're receiving or it just won't click through?

Thanks

-Rich

Shawn Flanigan
Shawn Flanigan
Courses Plus Student 15,815 Points

I don't see a problem with this code, either. Can you show us the rest of your code?

lee F
lee F
1,564 Points

I missed the first closing a on the page which mucked it up! thanks all!

1 Answer

Hi Lee,

You need the list tags inside the anchor tags like this:

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

That's invalid html.

The direct children of a <ul> have to be either <li>'s or script supporting elements.

lee F
lee F
1,564 Points

Thanks for confirming Jason was confused lol