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

Claire Fontaine
Claire Fontaine
1,955 Points

Challenge question for using "id" tag as a link keeps rejecting my answer.

Index Page Navigation list . . . . .

<ul> <li><a href="/#portfolio">Portfolio</a></li> </ul> . . . . . Section further down on the page. <h1 id="portfolio">My Portfolio</h1>


I'm using the same coding as the illustrated in the "hints" part of the question. I can't see for the life of me what the problem is. I've got over the videos and they say the same thing. Am I mis interpreting the question or is this is a bug?

Steven Parker
Steven Parker
229,645 Points

Can you provide a link to the challenge page?

2 Answers

Steven Parker
Steven Parker
229,645 Points

Without trying the actual challenge, I suspect the issue is caused by the slash preceding the # and name. A slash is only used for an absolute reference but this one should probably be relative.

Claire Fontaine
Claire Fontaine
1,955 Points

Thanks Steve, you are correct. I was getting confused with all those forward slashes and dots.

Correct response is: <ul> <li><a href="#portfolio">Portfolio</a></li> </ul>