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

hi what type of workspace should i create if i want to input simply code and play around with it?thanks so much

so i create a workspace (any environment, blank for the second option) then when i input this code,

 <body>
   <h1>Johnny</h1>
</body>

i press save and hit preview and i get

Index of /

its like an error page.

any info will help thanks

I have edited your post to display the code correctly.

Please refer to this thread about posting code to the forum. :)

4 Answers

Did you create an HTML file first by clicking File -> New File, then name your html file. You also have to save the file (Ctrl + S) after making any changes.

Hey Sean, thanks for the reply. I did do all of that and i still get the same error. any other tips ? thanks so much

Hmm. I just tested it with a new workspace with your posted code and it displayed for me. Have you tried making another workspace and test again?

Yea i have that problem is that i dont know what setting to put it on like any environment option ?