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 Linking to Sections of a Web Page

Teresa Grall
Teresa Grall
1,112 Points

When I do the vr-article link from the index.html, it still goes to the top of the page.

All my other links, such as back to the About section, etc, on the Home page are working just fine. But the part about linking from the index.html page directly to the beginning of the article just isn't working for me. I've watched the video a couple of times and gone over my code over and over. It looks just like the video, but it's just not going to the beginning of the article.

Probably when you are linking to the article you just put www.blablabla, but you need to put http://www.blablabla.com

1 Answer

Carlos Lantigua
Carlos Lantigua
5,938 Points

Depending on what folder you have it in you may have to either use <a href='..folder/vr-article.html'> in case the browser has to back track to get to it, or <a href='folder/vr-article.html'> if you're already in the root folder in your current page and need to go into a different folder to get to the file. You just have to put <a href='vr-article.html'> if it is in the same folder.