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 How to Make a Website Creating HTML Content Use the Navigation Element

Sonya Galaviz
Sonya Galaviz
169 Points

Preview 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>

https://w.trhou.se/6gy1jn9ywn

3 Answers

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,734 Points

Hi 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
John Steer-Fowler
Courses Plus Student 11,734 Points

I fixed this on my Forked copy of your Workspace, and it now previews fine for me.

John Steer-Fowler
John Steer-Fowler
Courses Plus Student 11,734 Points

You'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

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,734 Points

Hi 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
Sonya Galaviz
169 Points

HI 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.

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,734 Points

Just 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
Sonya Galaviz
169 Points

How 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
John Steer-Fowler
Courses Plus Student 11,734 Points

You 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.