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

Preview does not work in Chrome?

Currently I am at How to Make a Website track : structure the image gallery and I try to preview the code in wordspace but it only display two lines of the code.

Here is the code:

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Joe Yong | Property Agent</title> </head> <body> <header> <a href="index.html> <h1>Nick Pettit</h1> <h2>Property Agent</h2> </a> <nav> <ul> <li>Project</li> <li>About</li> <li>Contact</li> </ul> </nav> </header> <section> <ul> <li> <img src="img/numbers-01.jpg" alt=""> </li> </ul> <p>Gallery will go here</p> </section> <footer> <p>Ā© 2016 Joe Yong.</p> </footer>

</body>

</html>

Not too sure what went wrong? And now when I try to create a new tag, it always auto close with a </a>.

1 Answer

you forgot to close the href ".

fix

<a href= "index.html>

to

<a href="index.html">

Oh man thanks! Miss that out!