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

why isn't the Portfolio linking to index.html?

<header> <a href="index.html"> <nav> <ul>

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

8 Answers

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

You have to put the / before the a to end it like this </a> When your done it should look like this <li><a href="index.html">Portfolio</a></li> <li><a href="contact.html">Contact</a></li> <li><a href="about.html">About</a></li> </ul>

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

im sorry but it wont let me post the code to show you i'm new to this as well

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

hey thanks wolnie,

I went ahead and corrected the </a> tag, but for some reason, it doesn't want to link the index.html to the Portfolio name.

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

Peter Ramsing
Peter Ramsing
16,814 Points

Try this:

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

with the closing </a>

Hey Peter,

Thanks for the follow up. I updated the <a/> tag to the correct </a> tag but for some reason it still was noting that it wasn't linked to the index.html file.

ok i think i see the problem

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

try that out