Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

Websites Part 1/Saving a New Page - not a New File

I need some help to learn how to use the Sublime HTML editor with : http://teamtreehouse.com/library/websites/html/links/websites-part-1 This video asks to save a 'another page' as a new page, not a file. How do I do this with Sublime - I have Windows and am using sublime as an editor. The instructor seems to use MAC, and he doesn't show how to do this with Windows.

Has anyone that uses Windows successfully done this task?

I am saving these to a folder on my desk top named "Links" that has the added folder "my_directory". I have moved the "another_page" to "my_directory" but I can't get the links to work following the video.

9 Answers

samiff
samiff
31,206 Points

"another_page.html" is just a new file you create. You can create a new file by going to File -> New File, or Ctrl+N shortcut. Files in Sublime work sorta like "tabs" in an internet browser. Hope that's what you were asking about? Also, you can download the project files on the same page you are watching the video at. By doing that, you can compare your work to the instructor's.

Hey Sam,

Well, I seem to have the codes written right. I think it is just where my files are. My files are just like the downloaded ones, only they work and mine don't. My index file does not take me to the 'another_page.html'. So it obviously can't find the file. Did you complete this using Windows? Did you have this difficulty?

samiff
samiff
31,206 Points

Could it be that you are doing

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

instead of

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

because that's what you said you had named your subfolder in your original post?

Sam,

I did check that early this morning. I was making that mistake, but I corrected it and I am still having the problem.

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Geneva,

Can you please post a code example, or provide a list of your file structure? This way, I can take a look at what's going on. Thanks!

I would like to, but how do I post the code so it shows in this post?

[code] <!doctype html>

<html lang="en"> <head> <meta charset="utf-8"> <title>My Page</title> </head>

<body>

<p>Our first page</p>

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

</body>

<html/>

and

<!doctype html>

<html lang="en"> <head> <meta charset="utf-8"> <title>My Page</title> </head> <body>

<p>Another page</p>

<a href="../index.html">Go Back</a>

<a href="http://google.com">Take me to Google!</a>

</body>

<html/> [/code]

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Geneva,

You can either create a codepen or check out the "Markdown Cheatsheet" link below this text box, which shows you how to add code snippets in the forum.

Thanks :)

<pre class="codepen" data-height="300" data-type="result" data-href="zCofa" data-user="Celestialpetals" data-safe="true"><code></code><a href="http://codepen.io/Celestialpetals/pen/zCofa">Check out this Pen!</a></pre> <script async src="http://codepen.io/assets/embed/ei.js"></script> http://codepen.io/Celestialpetals/pen/zCofa

I saved the HTML, then the second HTML or another_page as CSS so you could see the code.