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

HTML Basics

Hi, I have type the following code and below that is what is showing on my web browser instead of what is shown in HTML basics episode 3. Can anyone advise why?

Much appriciated!

<!DOCTYPE html> <html> <head> <title> Experience VR </title> </head>

<body> <h1>Experience VR</h1> A simple blog about VR experiences </body> </html>

Below what is shown in web browser.

Index of / Index.html featured.jpg vr-space.jpg vr-user.jpg

3 Answers

Hey there,

it's probably because you've saved index.html with a capital I. Try saving your html file without the capital i and you should find your content loads properly.

Adam Beer
Adam Beer
11,314 Points

So did you try the code? Maybe that'll be fine.

<!DOCTYPE html> 
<html> 
    <head> 
        <title> Experience VR </title> 
    </head>

<body> 
    <h1>Experience VR</h1> 
    <h1>A simple blog about VR experiences </h1>
</body> 
</html>

It seems to me that the text "A simple blog about VR experiences" should be surrounded by <p></p> tags or <h4></h4> tags or whatever and not be surrounded by nothing.