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

'Preview Workspace' revealing only HTML code, not product....???

When I click on 'Preview Workspace,' all I get is the HTML code as opposed to the beautiful h1 element I've typed in (following the video's instructions). Any fixes for this? (I've not had any trouble with HTML docs in my browser in the past, only with Workspace).

2 Answers

Hey Wilson,

Sorry to hear you're having issues. Could you paste the code in the forum so we can have a look?

-S

Sure thing. Normally, I would type in < !DOCTYPE html > (forgive the spaces there, it won't let me post it otherwise) followed by < html > etc. etc. to set up an html document. However, the video has me simply entering an < h1 > < /h1 > with my name, so I entered, < h1 >Wilson Gardner< /h1 > ... the video proceded to show a beautiful h1 element in the preview window, however when I followed along and opened the preview window to see my beautiful < h1 > element, I got a not so beautiful, "< h1 >Wilson Gardner< /h1 >" ... simply reprinted in the preview window. I've noticed that some updates have been made to Workspaces since the video was posted. Perhaps this is why it is not following along as cohesively as it should?

You know what, it just started working for some reason. I entered some css and now it's fine!

Glad to hear you figured it out.

Good luck, Stephen