Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Creating HTML Content Create Navigation with Lists

matteo boni
matteo boni
5,087 Points

can you help me with this question

can you help me with this function

index.html
<!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="portfolio.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>
Thomas Beaudry
Thomas Beaudry
29,084 Points

Looks fine what's the problem?

matteo boni
matteo boni
5,087 Points

i don't see.

asks to put the list but does not give me ok , I try to do but still says no , I don't know what is wrong.

4 Answers

Hi Matteo,

It is your first link - it should point to index.html, you have linked it to portfolio.html so if you amend that, you should be fine:

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

:point_down: index.html not portfolio.html

<li><a href="index.html">Portfolio</a></li>

:point_up:

Let me know if that fixes it for you.

Steve.

Thomas Beaudry
Thomas Beaudry
29,084 Points

sounds like your on "how to build a website"? What is the code challenge, can you attach the question or video so I can see what he's asking you to do?

Code challenges are linked in the top right of forum posts, if the question is asked from the challenge directly.

matteo boni
matteo boni
5,087 Points

Link each of the three list items. Portfolio should go to “index.html”, About should go to “about.html”, and Contact should go to “contact.html”. this is the question

Exactly; and your Portfolio link doesn't go to index.html it goes to portfolio.html. So, if you change your first link from ...

<li><a href="portfolio.html">portfolio</a></li>

... to ...

<li><a href="index.html">Portfolio</a></li>

... then you should be fine.

Steve.