{"id":1362,"date":"2009-04-01T00:08:16","date_gmt":"2009-03-31T16:08:16","guid":{"rendered":"http:\/\/www.janleow.com\/life\/?p=1362"},"modified":"2009-04-01T00:08:16","modified_gmt":"2009-03-31T16:08:16","slug":"make-your-own-web-site-the-index-file","status":"publish","type":"post","link":"https:\/\/www.janleow.com\/life\/make-your-own-web-site-the-index-file.html","title":{"rendered":"Make your web site&#8217;s first page &#8211; the index.html file"},"content":{"rendered":"<p>\nThe first page you need to make when you make your web site is the index file. This is the web page where a visitor will be greeted when they key in your web site domain in their browser. You may say this is the entry point to start browsing your web site though it may not necessary be the first page a visitor will visit if they find your web site through a search engine. If they came in via the web site address that you supplied, then this index file will the first page where your visitors will drop in to your web site.\n<\/p>\n<p><!--more--><\/p>\n<p>\nBasically this filename in its complete form of file+extension will be index.html. Why use the .html extension? Well actually you can use other form of extension like .htm. However it always better to use the usual commonly used extension for consistency and thus the .html will be the standard extension to use.\n<\/p>\n<p>\nWhat about the other form of extension like .php, .shtml, or even .asp? These are rather special and refer to web pages that are coded to run on server side as oppose to client side. What it means is that to the visitor the pages are formed and created before the pages are displayed on the visitors&#8217; browser. While client side requires the visitor&#8217;s computer to render the web page code on his PC before it is displayed on his browser. If this seems rather complicated then just leave this concept on the table for the time being.\n<\/p>\n<p>\nWhenever you type in a domain name eg example.com the first thing the browser will look for is the file called the index.html. This is also true if you have a subfolder eg example.com\/subfolder, then the first file it will look for in the subfolder would also be an index.html file. You could actually control and modify which file a browser to look for by modifying the htaccess server file in the folder, but basically the main file a browser will automatically look is the index.html file.\n<\/p>\n<div style=\"border: solid 1px black; padding:3px;\">\n<p>\nAdvance technique to set the default file other than index.html<br \/>\nInclude this command in .htacces file:\n<\/p>\n<p><pre>\n# Set the default handler.\nDirectoryIndex index.html\n<\/pre>\n<\/p>\n<p>\nIf your new index file is called hello.php, then change the above index.html to hello.php. So when someone logs in to your web site they will end up on hello.php.\n<\/p>\n<\/div>\n<p>\nUsually it is prudent to have an index.html file for each subfolder within your web site. This would prevent visitors from accidentally viewing all your files and folders within that subfolder. However there is another way to prevent visitors from viewing the subfolders by preventing access using the .htaccess file should you prefer not to create an index.html file for every subfolder that you create in your web site.\n<\/p>\n<div style=\"border: solid 1px black; padding:3px;\">\n<p>\nTechnique to prevent visitors from looking at any of your subfolder in your web site. Include this command in your .htaccess file:\n<\/p>\n<p><pre>\n# Don't show directory listings in a directory.\nOptions -Indexes\n<\/pre>\n<\/p>\n<\/div>\n<p>\nSo this wraps up the explanation about index.html, the first file that a browser will load up whenever a website address is keyed in the address bar.\n<\/p>\n<p><strong>HTML tutorial with video<\/strong><\/p>\n<ul>\n<li><a href=\"make-your-own-web-site-15-html-how-it-works.html\">Learning HTML basics<\/a>\n<li><a href=\"make-your-own-web-site-16-text-formatting.html\">HTML Text formatting<\/a>\n<li><a href=\"make-your-own-web-site-17-more-text-formatting.html\">More HTML Text formatting<\/a>\n<li><a href=\"make-your-own-web-site-18-adding-images.html\">Adding images to your website<\/a>\n<li><a href=\"make-your-own-web-site-19-anchors-links.html\">Making links and anchors when you make your own web site<\/a>\n<li><a href=\"make-your-own-web-site-20-tables-rows-columns.html\">Creating tables, rows and columns in your web site<\/a>\n<\/ul>\n<p><b>More related HTML tutorials<\/b><\/p>\n<ul>\n<li><a href=\"http:\/\/www.janleow.com\/life\/html-basics.html\">Learning HTML codes for building a web page<\/a>\n<li><a href=\"http:\/\/www.janleow.com\/life\/html-01-the-basics.html\">Lesson 1 &#8211; The Basic HTML Tag<\/a>\n<li><a href=\"http:\/\/www.janleow.com\/life\/html-02-creating-a-website-page.html\">Lesson 2 &#8211; Create a website page<\/a>\n<li><a href=\"http:\/\/www.janleow.com\/life\/html-03-text-formatting.html\">Lesson 3 &#8211; Text formatting tags<\/a>\n<li><a href=\"http:\/\/www.janleow.com\/life\/html-04-text-alignment.html\">Lesson 4 &#8211; Aligning the paragraph text<\/a>\n<li><a href=\"http:\/\/www.janleow.com\/life\/html-05-making-ordered-bulleted-list.html\">Lesson 5 &#8211; Making bullet list and numbered list<\/a>\n<li><a href=\"http:\/\/www.janleow.com\/life\/html-06-html-table-codes-border.html\">Lesson 6 &#8211; Create tables in your website<\/a>\n<\/ul>\n<ul>\n<li><a href=\"make-your-own-web-site-the-index-file.html\">Index.html file &#8211; first page when you make your website<\/a>\n<li><a href=\"html-extension-vs-php-asp-shtml-phtml.html\">HTML extension vs PHP, ASP, SHTML, PHTML etc<\/a>\n<\/ul>\n<ul>\n<li><a href=\"http:\/\/www.janleow.com\/life\/make-website.html\">Make Website<\/a>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The first page you need to make when you make your web site is the index file. This is the web page where a visitor will be greeted when they key in your web site domain in their browser. You may say this is the entry point to start browsing your web site though it &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.janleow.com\/life\/make-your-own-web-site-the-index-file.html\"> <span class=\"screen-reader-text\">Make your web site&#8217;s first page &#8211; the index.html file<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[12],"tags":[83,111,160,161,162],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1bS5F-lY","jetpack-related-posts":[{"id":1188,"url":"https:\/\/www.janleow.com\/life\/html-extension-vs-php-asp-shtml-phtml.html","url_meta":{"origin":1362,"position":0},"title":"HTML extension vs PHP, ASP, SHTML, PHTML, etc","author":"Jan","date":"12 November 2009","format":false,"excerpt":"I have been curious, whether a HTML extension (or HTM extension for that matter) would do as well in a search engine as compared with extension that ended up in PHP, ASP, SHTML, PHTML, etc, etc. Of course each extension has its own usefulness. HTML was started pretty long ago\u2026","rel":"","context":"In &quot;Website&quot;","block_context":{"text":"Website","link":"https:\/\/www.janleow.com\/life\/category\/website"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":721,"url":"https:\/\/www.janleow.com\/life\/web-building-editors-notepad-wordpad.html","url_meta":{"origin":1362,"position":1},"title":"Web building using simple editors like Notepad or WordPad","author":"Jan","date":"30 July 2008","format":false,"excerpt":"There is no need to purchase a specialized web editor such as Office Frontpage, Dreamweaver, CoffeeCup HTML, etc. Here's how one can save some precious dollars just using the Notepad or WordPad that came with your Windows OS. HTML files are simply just text files with HTML tags that will\u2026","rel":"","context":"In &quot;Website&quot;","block_context":{"text":"Website","link":"https:\/\/www.janleow.com\/life\/category\/website"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1303,"url":"https:\/\/www.janleow.com\/life\/make-your-own-web-site-15-html-how-it-works.html","url_meta":{"origin":1362,"position":2},"title":"HTML and how it works video tutorial","author":"Jan","date":"31 January 2009","format":false,"excerpt":"Creating your html file does not require any special software. Just a basic text editor and a browser is all that is needed to make your web page. When you save the file, just be sure to change the extension from .txt to .html. Then preview it on your favourite\u2026","rel":"","context":"In &quot;Website&quot;","block_context":{"text":"Website","link":"https:\/\/www.janleow.com\/life\/category\/website"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":736,"url":"https:\/\/www.janleow.com\/life\/html-basics.html","url_meta":{"origin":1362,"position":3},"title":"Learning HTML","author":"Jan","date":"19 March 2007","format":false,"excerpt":"Let's face it, even if you are planning to use the provided installation script to make a CMS website, blogging website or use the provided web builder from the web hosting provider, you still have to learn some HTML. There is no escape from getting your hands dirty into coding\u2026","rel":"","context":"In &quot;Website&quot;","block_context":{"text":"Website","link":"https:\/\/www.janleow.com\/life\/category\/website"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":637,"url":"https:\/\/www.janleow.com\/life\/xml-sitemap-google-yahoo.html","url_meta":{"origin":1362,"position":4},"title":"XML Sitemap for Google and Yahoo","author":"Jan","date":"28 March 2008","format":false,"excerpt":"The sitemap.xml is to assist the search engines to index your web site. Search engines like Google, Yahoo, MSN Live, and etc constantly sends out robots, spiders, crawlers (or whatever term they wish to call these automated indexing software) to index websites to put into their search database. To give\u2026","rel":"","context":"In &quot;Website&quot;","block_context":{"text":"Website","link":"https:\/\/www.janleow.com\/life\/category\/website"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1322,"url":"https:\/\/www.janleow.com\/life\/make-your-own-web-site-19-anchors-links.html","url_meta":{"origin":1362,"position":5},"title":"Anchors and links. A HREF HTML tags. How to make connections from one web page to another","author":"Jan","date":"31 March 2009","format":false,"excerpt":"Links are like the flow lines in the internet world. Links are one of the more important aspects when you make your own web site. Without links in your web site, you would consider your web site as dead. No way to move from one page to another page saves\u2026","rel":"","context":"In &quot;Website&quot;","block_context":{"text":"Website","link":"https:\/\/www.janleow.com\/life\/category\/website"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/posts\/1362"}],"collection":[{"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/comments?post=1362"}],"version-history":[{"count":0,"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/posts\/1362\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/media?parent=1362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/categories?post=1362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/tags?post=1362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}