Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

What is the index.html file really for?

I am learning HTML5 from a 'Missing Manual' book, and the root folder contains the index file. But, when I visit a site like, for example, cnn.com, the URL does not show the index file.

What will my site eventually look like if I try to upload it if my homepage path says index? How do I get it so that only my domain name shows?

Thank you.

6 Answers

Relevance
  • 3 years ago

    The index.html page is the most common name used for the default page shown on a website if no other page is specified when a visitor requests the site. In other words, index.html is the file name used for the homepage of the website.

    Besides index.html, there are other default page names that some sites use, including:

    index.htm

    default.htm or default.html

    home.htm or home.html

    For detailed information get help from experts at

  • 3 years ago

    The index.html page is the most common name used for the default page shown on a website if no other page is specified when a visitor requests the site.

  • Andy T
    Lv 7
    3 years ago

    This is often the entry page to a website, it could be changed to something else but that's probably not so, It is a website setting not at all related to HTML coding. It is like autorun.ini that exists on CD and DVD-ROM discs.

  • Bill-M
    Lv 7
    3 years ago

    Index.html is your First Page of your web page. When you place your web page on a server the first page is always called INDEX.

  • How do you think about the answers? You can sign in to vote the answer.
  • ?
    Lv 6
    3 years ago

    Bing Bing has the right of it!

    The default file for a website that loads when you type the domain is determined by the settings on the server. The 'index.html' file will be loaded by default if you type in the address if it's set to load that file.

    So if I were to create a website agent128669.com for my badge number, and had the home page named 'index.html' when someone types in the domain 'www.agent128669.com' into their web browser it will load the 'index.html' page. Most companies have it so that if you specify the index page you get redirected to the standard domain name to make it easier to see which website you're on and to keep their website secure. So if we were to use the same example, 'www.agent128669.com/index.html' would load the index page, however if I set it up to redirect it like CNN does, then even if I were to type in /index.html with the web address I would still see 'www.agent128669.com' in the address bar.

    It's good to note that it doesn't have to be titled 'index.html' specifically. Some other common ones would be 'index.htm', 'index.asp', and 'index.php' as well as many others.

    I hope this cleared up some for you, and I definitely recommend keeping up with the book!

    Geek Squad Agent Joseph M.

    Badge #128669

    Advanced Repair Agent

    Geek Squad Social Media Team

    06/29/2018

  • 3 years ago

    It has nothing to do with HTML and everything to do with your web server. If you're using Apache, the default file (the one that loads when you type the domain only) is usually set in the .htaccess file. In IIS, it's part of the site setup.

Still have questions? Get your answers by asking now.