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 trialChristopher Houston
4,030 PointsI deleted my index.html file how do I get it back?
Sorry that I'm asking for help again in the same day. I deleted the index.html file how do I get it back?
Christopher Houston
4,030 PointsI don't see the index file under the video anywhere and what is the lecture?
2 Answers
PAUL AGADA
3,163 PointsWhere did you mistakenly deleted your index.html file. is it on our personal computer?
Jay Padzensky
4,731 PointsHi Christopher,
My apologies for any inconvenience caused. If a document (such as an index.html file) is deleted and the Workspace is subsequently saved, the document will not be able to be retrieved. The file will need to be recreated if this is the case. I'm sorry, I hate to be the bearer of bad news. This can also be a great opportunity to review what you have learned and continue to hone your new skills, as with all things, practice makes perfect! (or at least with coding, practice means you get closer to fewer bugs ;)
Additionally, remembering to save your Workspace to a local file may also be a good habit to get into.
Christopher Houston
4,030 PointsHaha thanks!
PAUL AGADA
3,163 PointsPAUL AGADA
3,163 PointsKindly relaunch your WorkSpace just beneath the video, the index.html file should be there automatically. OR check below the lecture where the html tutorial was undertaken, you should see the files to download in a zip folder. You can re-download the complete zipped file, extract the index.html from the zipped folder to your local computer. Then, create a new index.html in your LAUNCH WORKSPACE, copy the source file from the index.html on your local computer, then paste in the new html file you've created and save it. It should be fine.
NOTE: to view source of the index.html on your local computer, kindly open index.html on your browser, then right click on any whitespace, click view page source. A new window would open, that is the source code to copy.
I hope this help.
Thanks