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

JavaScript JavaScript Basics Hello, JavaScript! JavaScript Everywhere

John Fulstone
PLUS
John Fulstone
Courses Plus Student 762 Points

I have no html on my workspace. How do I get it back.

I've been trying to continue my course, but there is no "index html." There is the CSS and java. I'm at the very beginning "Add JavaScript to html." this is very frustrating because I'm stuck!

4 Answers

So if you go to the home page of treehouse, there should be a link on the right side for "Workspaces" You can possibly manage the workspaces you want from there. Sometimes there will be multiple workspaces so it could be you just have one that saved a workspace without the html file. I would check that out

You can create an index.html file if you need to. Just when you are in the treehouse terminal, make sure to click "File" and "New File". You can name the file "index.html" and then type in the info. I'll write it in so you can copy and paste it in place to help. But to help you learn javascript, i'll leave the adding part up to you.

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>JavaScript Basics</title>
    <link href="css/style.css" rel="stylesheet">
  </head>
  <body>
    <main>
      <h1>Hello, JavaScript!</h1>
    </main>
  </body>
</html>

Let me know if this helps your issue.

John Fulstone
PLUS
John Fulstone
Courses Plus Student 762 Points

Thank you. I had deleted html from my workspace by accident. I figured it out. I clicked on Workspace, added a new one, and deleted the one I'd been using. Now, however, I cant get my html script from my workspace to my JavaScript Basics tab. https://teamtreehouse.com/workspaces/41628885# http://port-80-zoiquhtgtv.treehouse-app.com/ I'm on this course for boneheads. https://teamtreehouse.com/library/add-javascript-to-html Any ideas?