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

has anyone else encountered problems with question #3 "Link each of the three list items...."?

this is what I entered...

<!DOCTYPE html> <html> <head> <meta charset=”utf-8”> <title>Gerald M Perkins| Relationship Coach</title> </head> <body> <header> <a href=”index.html”> <h1>Gerald M Perkins</h1> <h2>Relationship Coach</h2> </a> <nav> <ul> <li><a href=”index.html”></a>Portfolio</li> <li><a href=”about.html”></a>About</li> <li><a href=”contact.html”></a>Contact</li> </ul> </nav> </header> <section> <p>Gallery will go here.</p> </section> <footer> <p>© 2015 Gerald M Perkins.</p> </footer> </body> </html>

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="index.html"></a>Portfolio</li>
          <li><a href="about.html"></a>About</li>
          <li><a href="contact.html"><a/>Contact</li> 
        </ul>
      </nav>
    </header>
    <section></section>
    <footer>
      <p>&copy; 2013 Nick Pettit.</p>
    </footer>
  </body>
</html>

4 Answers

Shawn Boyd
Shawn Boyd
14,345 Points

It looks like you're not wrapping the link around the text meaning that the clickable area to follow the link does not include the text. Something like this

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

will make the text 'Portfolio' clickable to go to index.html

It also looks like the closing tag on your third link there isn't formatted quite right. It doesn't look like the other ones.

Thank you, Shawn... I changed my closing 'a tag' to what you suggested and still getting the same error message <li><a href=”index.html”>Portfolio</a></li> <li><a href=”about.html”>About</a></li> <li><a href=”contact.html”>Contact</a></li>

According to the training module there is supposed to be a 'closing A tag', however the challenge question indicates the correct answer without a 'closing A tag'.

Shawn Boyd
Shawn Boyd
14,345 Points

There should be a closing tag, and you have one, but you have it before the text for the link.

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

For the text to be included in the link, the closing tag needs to follow the text.

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

You are correct, however for the answer I had to delete the closing tag. I provided the feedback.