# index.html

**URL:** https://forum.kirupa.com/t/index-html/638212
**Category:** Uncategorized
**Created:** [May 13, 2018, 4:23pm UTC](https://forum.kirupa.com/t/index-html/638212 "2018-05-13T16:23:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Findid](https://avatars.discourse-cdn.com/v4/letter/f/58956e/32.png) [@Findid](https://forum.kirupa.com/u/Findid)
#### Post date: [May 13, 2018, 4:23pm UTC](https://forum.kirupa.com/t/index-html/638212/1 "2018-05-13T16:23:54Z")

</div>

I am learning javascript using tutorials on line. I have a question about handling code files on my pc. Specifically, index.html. Must this file be called index or can it be called for example myProgram.html in a folder called myProgram. Or must index.html be in a folder called myProgram. I hope my question is clear. Thank you[.](https://www.stjohns-gildehaus.org/UserProfile/tabid/43/userId/377253/Default.aspx)

---

<div class="post-metadata">

### Author: ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)
#### Post date: [May 13, 2018, 4:29pm UTC](https://forum.kirupa.com/t/index-html/638212/2 "2018-05-13T16:29:49Z")

</div>

Hi Findid - your question is clear! Your HTML files can be named anything you want! You can have one folder with a bunch of differently named HTML files also. For example, here is what one of my folders looks like:

 ![image](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/2X/7/7cd23f2571f6e8af9a120df0ce63b60fcb04c7b6.png)

When you upload files online to a web server, index.html and index.htm get some special treatment. For example, let’s say the URL to your index.htm is [https://www.example.com/foo/index.htm](https://www.example.com/foo/index.htm), you can just type [https://www.example.com/foo/](https://www.example.com/foo/) This behavior is also why when you visit a web site, you just type in [google.com](http://google.com) as opposed to [Google](http://google.com/index.html)

Let us know if this helped 🙂

Cheers,  
Kirupa
