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 question

I typed this:

<!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8"> <title>All About Vicky</title> <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel="stylesheet" type="text/css"> <link href="style.css" rel="stylesheet"> </head>
<body>

<h1> Victoria Berry</h1>

<h2> Student</h2> </body>

</html> And got this: Index of / • Vicky.html/

What happened?

Seth, Thank you so much! You're the man! Bill

1 Answer

When you don't request a file directly by name the web server, the software on the remote computer that sends out web pages, has to figure out what to send in response. When you request a path without an extension, like / or /about and it corresponds to a folder or directory it looks for a default file to send. That file is named "index" and usually has the extension ".html" but can be others like ".php", ".asp", etc. for files in those languages. So if index.html doesn't the server can finally default to showing a plain listing of files in the directory, which it is doing here. To show your new html file you'd either need to click on the Vicky.html or rename Vicky.html to index.html.