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 Links Websites: Part 1

How do you connect two html docs with NotePad?

Notepad on Windows

1 Answer

Ethan Lowry
PLUS
Ethan Lowry
Courses Plus Student 7,323 Points

If I'm understanding you right, in that you want to be able to navigate to one page from the other, then what text editor you use has nothing to do with it - what matters is where the files themselves are stored.

So if you have them both in the same folder (or anywhere really, but that's very slightly more complex to explain) then you can link to them as normal, like a text link from index.html might be:

<a href="page_2.html"> My Link Text </a>

Hope that helps.

Sean T. Unwin
Sean T. Unwin
28,690 Points

Keep in mind that when using Notepad and saving an HTML document for the first time (Save As) be sure to check UTF-8 from the 'Encoding' dropdown near the 'Save' button.