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

Workspaces preview showing the html code instead of the markup.

I used the default index.html file with Nick Pettit's name with in h1 tags. I clicked preview and it showed the code rather than the expected markup. I tried putting it within open and closed html tags and it still shows the code instead of the markup. I'm using safari.

Update: when I add a css style to the h1 at the top of my code and preview, it shows the expected markup. When I delete the css style code and leave the h1 tags and name remaining solely on the file and preview, it shows the code rather than the expected markup, again.

update2 : i noticed in a later walkthrough video nick had his h1 code inside body tags. my markup previews as expected in that way. perhaps consider either changing the into video on h1 tags or take a look at a fixing a possible bug in the workspaces. Otherwise it is liable to confuse other beginners working on their first code.

Good Afternoon Josh,

I am not sure this will help you or not. Do you have <!DOCTYPE html> at the top of your document? I would try another browser to see if the problem occurs on them as well.

1 Answer

As I progressed through the course I realized that the <!DOCTYPE html> will solve that issue. The issue is that I did exactly as the video instructed me to.

My only advice is that Treehouse update the video with that detail or tweak the Workspaces code so that anyone having only seen that one video and following along, will not encounter that error.