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 trialSonya Galaviz
169 PointsPreview not showing
My index.html page looks correct but when I try to preview nothing shows up. Also </a> keeps appearing when I'm closing a tag. If does not match the tag I've started. Ex: <nav> shows the closing as </a> not </nav>
3 Answers
John Steer-Fowler
Courses Plus Student 11,734 PointsHi Sonya,
You have a syntax error on line 9 of your code.
Instead of this:
<a href="index.html>
It should look like this:
<a href="index.html">
Note that you have missed a closing quote mark
John Steer-Fowler
Courses Plus Student 11,734 PointsHi Sonya,
I am a little confused by your question. Do you mind going into some more detail?
I think one of the most common mistakes new students make when using Workspaces, is that they forget to save their code before previewing. Try saving your work and then hitting preview.
If this doesn't work, then more detail is required for me to be able to help you
Thanks
Sonya Galaviz
169 PointsHI John,
I just pasted the code above. I did save it before I previewed and nothing comes up.
Also, </a> keeps populating each time I'm trying to close an element. I'm not sure why.
Sonya Galaviz
169 PointsI posted my url
John Steer-Fowler
Courses Plus Student 11,734 PointsJust having a quick look at the code you have now posted.
You seem to be missing a HTML tag, a Head tag and a Body tag from your website.
This might be one of the issues with your preview not working.
These should look like this in your code:
<html>
<head>
<!-- This is where links to stylesheets go -->
</head>
<body>
<!-- This is where our main website structure goes -->
</body>
</html>
Sonya Galaviz
169 PointsHow can I get my snapshot to show up here? My html is there but the copy/paste is not showing it all.
John Steer-Fowler
Courses Plus Student 11,734 PointsYou should be able to snapshot your workspace which will give you a link you can post into this forum.
Check the Markdown Cheatsheet when posting an answer to this thread for info on how to paste a link into the forum.
John Steer-Fowler
Courses Plus Student 11,734 PointsJohn Steer-Fowler
Courses Plus Student 11,734 PointsI fixed this on my Forked copy of your Workspace, and it now previews fine for me.
Sonya Galaviz
169 PointsSonya Galaviz
169 PointsThank you!!
John Steer-Fowler
Courses Plus Student 11,734 PointsJohn Steer-Fowler
Courses Plus Student 11,734 PointsYou're welcome.
If you need any further help, just give me a shout.
You can reach me in further forum posts using the '@' symbol and then my name
Keep up the good work