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

Links

I am using Windows - Sublime Text 2 - Chrome, and instructor is using Mac - and another editing program. When I attempt to create a link to a second page by using this tag:

    <a href="another_page.html">My Link</a>

and I press the "My Link" it sends me to a page that shows up as an error.

Question: Am I simply not saving pages correctly?

andi mitre
andi mitre
Treehouse Guest Teacher

Is another_page.html in the same directory?

2 Answers

No. It is not. Does it have to be in order for it to work?

andi mitre
andi mitre
Treehouse Guest Teacher

yes, to go up by a directory enter a slash before the another_page.html like "/another_page.html" if not there specify the filepath

okay - thanks