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 HTML Basics Going Further with HTML Links and Paths Challenge

Links and Paths Challenge Q3

Can’t figure out what I’m doing wrong here at all? & for some reason this box won't let me write more than 3 lines!HELP!

<!DOCTYPE html> 
    <title>Portfolio Page</title>
    <img src="../img/logo.png" alt="Site logo">
      <li><a href="/">Home</a></li>
      <li><a href="/#portfolio">Portfolio</a></li>                

    <h1 id="portfolio">My Portfolio</h1>

Can’t figure out what I’m doing wrong here at all?

../index.html#portfolio and /#portfolio don’t work Portfolio section is marked up as #portfolio Have tried wrapping the Portfolio section in <section> ? Have removed <h1> and replaced with <div> in case that was the problem? Everything is spelled right I think…? Keeps telling me it's wrong HELP this is discouraging!

2 Answers

Jason Anders
Jason Anders
Treehouse Moderator 145,858 Points

Hi Harriet Hutton

You're pretty much there. You just have an errant slash preceding the the pound sign for the link. When directing to sections you don't have to put anything but # immediately followed by the section name.

So, just delete the / and you're good to go.

      <li><a href="#portfolio">Portfolio</a></li>                

Nice work! :) :dizzy:

Thank you for your help!!