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

What is wrong with my code?

I am getting this error which says:

Index of /

../ Index.html 14-Dec-2014 14:53 320

Here is my code:

<!DOCTYPE html>
<html>
  <head>
    <meta Charset="Utf-8">
    <title>Kiran Siddiqi | Designer</title>
    </head>
  <body>
    <header>
      <h1>Kiran Siddiqi</h1>
      <h2>Designer</h2>
    </header>
    <section>
      <p>Gallery will go here</p>
    </section>
    <footer>&copy; 2014</footer>
    </body>
</html>

5 Answers

Hi Kiran,

And welcome to the forums.


Have you tried logging out then back in,

Also, you may find this link of use for posting in the future.

Here is a link to explain how to use Markdown to post your code How to post code

Hope this helps.

Hi Wayne Priestley, Thanks for the warm welcome. Yes I have tried logging out then back in but its not working. I have also tried mozilla browser but i am facing the same issue. Thanks for the link.

Thanks to Erik Krieg now i know how to post the code.

Welcome to Treehouse, Kiran!

Is that all of your html? If it is you are missing the opening head tag at the top as well as the html tags. You should also include the doctype. Something like this:

<!DOCTYPE html>
<html>
<head>
    <meta Charset="Utf-8">
    <title>Kiran Siddiqi | Designer</title>
</head>
    <header>
      <h1>Kiran Siddiqi</h1>
      <h2>Designer</h2>
    </header>
    <section>
      <p>Gallery will go here</p>
    </section>
    <footer>&copy; 2014</footer>
    </body>
</html>

All my code is there but it is not showing here. Posted again.

<!DOCTYPE html>
<html>
  <head>
    <meta Charset="Utf-8">
    <title>Kiran Siddiqi | Designer</title>
    </head>
  <body>
    <header>
      <h1>Kiran Siddiqi</h1>
      <h2>Designer</h2>
    </header>
    <section>
      <p>Gallery will go here</p>
    </section>
    <footer>&copy; 2014</footer>
    </body>
</html>

I see, when you past code in a comment here, you put three backticks at the start and end of it. You can also put html or css after the three backticks so it knows how to style your code.

You can click edit on your post to see exactly what I did, or click the "Markdown Cheatsheet" (just above the post comment button) and see a list of format options for the forum.

I checked your html and it looks good, I also validated it and it came out spotless. So where are you getting this error? Is this for a code challenge or are you just trying to follow along with a tutorial? If so, which one?

I am trying to follow along with the tutorial, here is the link:

Create the content Containers [http://teamtreehouse.com/library/how-to-make-a-website/html-first/create-the-content-containers]

I am getting the error in the Workspace of Teamtreehouse.

Okay, well the problem seems to be workspaces related. What browser are you using? There could be a conflict there. I use Chrome, but Firefox and IE11 should all work well too.

If that is not the problem, I suggest maybe reaching out to Treehouse customer support. I am afraid I am not too sure how to troubleshoot for workspaces since I have had no problems with it so far >.<

Thanks for guiding me to cheat sheet and assisting me with the issue. I am using safari browser 7.0.6. I do have mozilla as well. just tried mozilla same issue. I will contact the customer support.

Your help is appreciated Erik Krieg.:)