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
Johnny Zamora
Courses Plus Student 551 Pointshi 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
4 Answers
Sean T. Unwin
28,690 PointsDid 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.
Johnny Zamora
Courses Plus Student 551 PointsHey Sean, thanks for the reply. I did do all of that and i still get the same error. any other tips ? thanks so much
Sean T. Unwin
28,690 PointsHmm. 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?
Johnny Zamora
Courses Plus Student 551 PointsYea i have that problem is that i dont know what setting to put it on like any environment option ?
Sean T. Unwin
28,690 PointsSean T. Unwin
28,690 PointsI have edited your post to display the code correctly.
Please refer to this thread about posting code to the forum. :)