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
Josh Copeland
11,346 PointsWorkspaces 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.
Josh Copeland
11,346 Pointsupdate2 : 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.
Mark Casavantes
Courses Plus Student 13,401 PointsGood 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
Josh Copeland
11,346 PointsAs 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.
Josh Copeland
11,346 PointsJosh Copeland
11,346 PointsUpdate: 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.