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

Neelima Konduru
Neelima Konduru
7,738 Points

I cannot understand the error

I cannot understand what is wrong with what I typed

index.html
<!DOCTYPE html>
<html>  
  <head>
    <meta charset="utf-8">
    <title>NK | Developer </title>
  </head>
  <body>
    <header>
      <a href="index.html">
        <h1>Neelima Konduru</h1>
        <h2>Developer </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>This will be the section.</p>
    </section>
      <p>&copy; 2017 Neelima Konduru.</p>
    <footer>
    </footer>

  </body>
</html>
josephpatrickpotot
josephpatrickpotot
17,918 Points

There is a forward slash ( \ ) after the anchor </a>

1 Answer

Evgeniia Mas
Evgeniia Mas
4,452 Points

Hello! I agree with josephpatrickpotot about your typo with slash, but additionally, as I think, it is not very good idea to have links to the same file you are working in now - index.html, because after click you don't get any new content or part of your main page. You should target any part of this page, scroll to that part (where your portfolio and so on for example) and you use to h1, h2 in same link - as a block elements, so they display on different lines. User should think there are two different links and it is not so!!! You can style them like inline element like this h1, h2 { display: inline; } They will be on one line or use <span> </span> tag and include there "developer" and style it differently, font-size less than h1 tag if you want it to look smaller than your name.