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 trialWalter Hargrove
238 PointsWhy does the preview not work?
When I hit the top right hand "eyeball" icon that means "preview" it only opens a webpage with my coding being shown. It should show the results of my coding and not my coding.
What is wrong?
4 Answers
Erik Nilsen
20,433 PointsI'm not sure what you're asking, but if you're writing HTML and you preview it. You are going to see rendered HTML. :)
Erik Nilsen
20,433 PointsThat is completely valid HTML and renders properly. If you're saying that it is not styled, then you just need to add some CSS. :)
Link to my workspace: https://teamtreehouse.com/workspaces/5095772#
Walter Hargrove
238 PointsI am glad to get your eyes on my coding. I am having a problem of just "previewing" what I am coding. When I hit "preview", it does not "render" it for me. It just shows me the code text.
I thought I had it coded correctly. I am wondering if there is some other kind of problem I am having?
Erik, Thank you for you help!
Erik Nilsen
20,433 PointsNot sure, Walter. If you think the code it self is not previewing, try using http://codepen.io/ or https://jsfiddle.net/ and paste in your html. Were you able to preview it on my workspace?
If you think its a technical issue with the site, you're best off to contact treehouse support directly.
Sorry If I didn't answer you question correctly the first time. :)
Walter Hargrove
238 PointsErik, I tried your previewing websites and the coding worked. I will contact treehouse support and ask them. Thanks again for your help!
Regards, Walter
Ruth Johnstone
370 PointsI had this issue and tried using Chrome instead of Safari and it worked.
Walter Hargrove
238 PointsWalter Hargrove
238 PointsHere is my code (and this is exactly what I see when I hit the preview window. I think I closed everything off): <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Walter Hargrove | Industrial Designer</title> </head> <body> <header> <a href="index.html"> <h1>Walter Edward Hargrove III</h1> <h2>Designer</h2> </a> <nav> <ul> <li><a href="index.html">Portfolio</a></li> <li><a href="About.html">About</a></li> <li><a href="Contact.html">Contact</a></li> </ul> </nav> </header> <section> <ul> <li> <img src="img/numbers-01.jpg: alt=""></image> </li> </ul> </section> <footer> <p>© 2015 Walter Hargrove.</p> </footer> </body> </html>