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.

HTML

Website Beginner For "Smells Like Bakin"; How To View Text As Webpage

Super beginner here so sorry for the basic question. In the video there is a quick way to view the text in a new tab as a webpage, what is it? Thanks.

3 Answers

Chase Lee
Chase Lee
29,275 Points

Are you talking about the source code? If so it's option, command, u on a Mac.

I don't think source code because that didn't work. From the video it looks like another tab opens up with a view of the code as a webpage. Is that in the tabs open at top? I am using Sublime Text.

Christopher Leonard
Christopher Leonard
11,172 Points

Right click on the web browser and click view source code or view page source. That will show you the HTML code of the webpage you are on.

Thanks, I am looking to go the other way though. I've followed the video and typed the text, now I want to see that it looks like it should by seeing it as the webpage. To see if I typed it in right.

Christopher Leonard
Christopher Leonard
11,172 Points

Ah ha! So you should have your HTML file saved in a folder somewhere on your computer. Open your browser and drag the HTML file (named index.html if you named it the same as they did in the video) and just drop it in some empty space on the page of the browser.

That should let you see what you've built.

Got that to work, thanks. Looks like that only works if you have an internet connection?

Chase Lee
Chase Lee
29,275 Points

Just double click your HTML file.

Wish there was a way to load a screen shot in here, but I cannot save the file in the Project tab so I'm not sure where to go to click the HTML file. I did get it to work by dragging it into a browser.

Chase Lee
Chase Lee
29,275 Points

Just upload it to imgur and give use the link to it.