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 HTML First Create the Content Containers

Brendan Whiting
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Brendan Whiting
Front End Web Development Techdegree Graduate 84,735 Points

Seems like "save" didn't work

I saved my index.html, the orange dot disappeared, but an old version of the webpage kept appearing in preview. Why is that?

I took my html text, put it in a separate text editor and viewed that HTML file in my browser and it worked fine. What's wrong with preview - why would this happen?

Here is my HTML text:

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>My Name | Test Page</title> </head> <body> <header> <h1>My Name</h1> <h2>Test Page</h2> </header> <section> <p>Gallery will go here.</p> </section> <footer> <p>Ā© 2014 My Name</p> </footer> </body>

</html>

2 Answers

Have you tried refreshing your page?

Scott Haven
Scott Haven
5,015 Points

Saving index.html sometimes isn't enough to allow preview to work (i.e., recent changes aren't appearing on the rendered page). Likely a bug. To work around it, I simply closed index.html and reopened it, then selected preview.