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 How to Make a Website Beginning HTML and CSS Follow Along with Workspaces

Hannah Plane
Hannah Plane
1,583 Points

My name won't appear on the preview page even though the code is fine. Any way to resolve this?

I have typed in the correct code, followed the instructions completely but it comes up with Index of/ Index.html instead of my name when I preview the page. I was just wondering why this could be? I've saved the code multiple times and I've also retyped it and I still have the same issue.

Can you show your code?

Remember, wrap your code in 3 backticks (the ` character is located on the top-left corner of your keyboard).

Example:

```

<h1>Hello world</h1>

```

<h1>Hello world</h1>
Hannah Plane
Hannah Plane
1,583 Points

Here is what I put, as outlined in the lesson:

<h1>Hannah Plane</h1>

However the page just reads: Index of/ Index.html when I preview it.

I'm not sure how I would add the 3 backticks on the Mac keyboard...I've attempted this (unsure as to whether it's correct or not) but it still comes up with the same thing as before.

Are the backticks important? And if so, why are they not mentioned in the video? I'm only doing this in the workspaces program provided.

3 Answers

Hi Hannah, the backticks are just for displaying code here on the Community help pages, you don't need them when writing HTML.

The title bar's text (which is also the text that appears in tabs in your browser) is set by the <title></title> tag within the <head>. For example:

<html>
  <head>
    <title>Page title</title>
  </head>
  <body>
    <h1>Page heading</h1>
  </body>
</html>
Hannah Plane
Hannah Plane
1,583 Points

Hi there! Thank you for both of your responses - it turns out that all it was is that I named the file Index.html rather than index.html. It now works fine! :)

I did the same thing :)

Hi Everyone,

Just remember to save your work then hit the preview button and everything should work fine.

Respectfully, Jordan