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

why is this not working

pissing me right off I know its right

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

fix plzzz

4 Answers

Vittorio Somaschini
Vittorio Somaschini
33,371 Points

Lee.

where are you putting the code?

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Nick Pettit</title>
  </head>
  <body>
    <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>
    <section></section>
    <footer>
      <p>&copy; 2013 Nick Pettit.</p>
    </footer>
  </body>
</html>

this one works, check it agains this code.

lee F
lee F
1,564 Points

I missed the first closing a tag think it messed it up!

Vittorio Somaschini
Vittorio Somaschini
33,371 Points

Hello Lee.

Can we see your code please?

Please paste it here

lee F
lee F
1,564 Points
 <ul>
            <li><a href="index.html">Portfolio</a></li>
            <li><a href="about.html">About</a></li>
            <li><a href="Contact">Contact</a></li>
          </ul>
Gurpeer Duhra
Gurpeer Duhra
4,205 Points

Hello, sir. =)

  • Also you do not need to always have < . /li .> all the time.
  • You were also missing the .html on you're contact area.
  • Other then that, I don't see anything else.

      <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>
    
lee F
lee F
1,564 Points

Not it does not work it says portfolio needs to go to index.html still..

Glitch for sure

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>