Houdini 0 Report post Posted July 21, 2006 To be sure use html the server will just look at the first three or htm and if you use html will still work. Problem solved. Ha ha ha! Share this post Link to post Share on other sites
vujsa 0 Report post Posted July 21, 2006 hi friends,Does anybody know the difference between .htm and .html files. I am wondering why there are two extensions for the same type of files!!Even some hosts make the index.htm as the home page and some do the other way. Isn't there any standard for making the home page. Some even use default.htm as home page. When the page with different extension is present then it gives a 404 (Page Not Found) Error.Any light in that direction will be of much help.Regards. To answer the actual question, there is no difference between the two extentions. I mean there is absolutely no difference between the two extentions. In case you didn't understand what I was trying to say, there is no difference between the two file extentions. Having made my point abundantly clear, I do have something to add. Even though there is no difference between the two file extentions since the one is JUST a shorter version of the other or maybe one is JUST a longer version of the other, the longer version is preferable by todays standards which don't really mean too much since the only standard for web design is that there isn't any real standards. There have been attampts to define standards but the browsers don't care, the browser developers don't care, and the web site designers don't care. This is because making a webste conform to the standards does not mean that all web browsers will correctly display the content nor does it mean that your page will be looked upon more favorably by the search engines or page ranking robots. In fact, trying to make your web site conform to the standards may make it more difficult to make it appear more uniformly accross all of the web browsers available. I recommend that you use .html but whatever you choose to use, be sure to always use the same extention. This will reduce the number of dead or broken links on your web site. vujsa Share this post Link to post Share on other sites
BitShift 0 Report post Posted September 5, 2006 Between PHP, .asp, and Perl (.pl) it does not matter so much considering html is not used as often as it used to be.Even if it is on most sites if you type in the domain ( http://forums.xisto.com/no_longer_exists/ ) half the time it wont even show you what file your on until you click on a link inside the website. Share this post Link to post Share on other sites
minnieadkins 0 Report post Posted September 5, 2006 I had heard as someone stated above. Some OS's back in the day could only see 3 letter extensions. Therefore it was .htm. Then when the new snazzy OS's came out they went ahead with .html which is a bit more appropriate.I would also recommending .html, but its up to you. In my experience they are handled the same, but which does it load by default. If you have an index.htm, index.html, and index.php I guess it depends on ur server configuration. I know nothing of that =/. Share this post Link to post Share on other sites
borlafu 0 Report post Posted November 12, 2006 The only use for the extension is for Windows to know what kind of file it is. So if you configure in Windows "xxx.bizzarreextension" to be evaluated as an HTML file it will have the same functionallity as xxx.html or xxx.html.HTML files are just plain text files, wich text follow some rules to accomplish the w3c recommendation for Hypertext Meta Language.The 3 character extension is due to the 8.3 file name format on some old sistems like MSDOS Share this post Link to post Share on other sites
marion 0 Report post Posted February 1, 2007 hi friends,Does anybody know the difference between .htm and .html files. I am wondering why there are two extensions for the same type of files!!Even some hosts make the index.htm as the home page and some do the other way. Isn't there any standard for making the home page. Some even use default.htm as home page. When the page with different extension is present then it gives a 404 (Page Not Found) Error.Any light in that direction will be of much help.Regards. There really isnt much difference at all, except for one. Usually the main page of a website is called index. If thats the case, then it's usually a .html extension. I have my entire site stored in a folder(and subfolders) on this computer. The main site has one html file(the index), and the rest are htm. I also have 4 subfolders. 2 of them have entirely htm files and pic's. Another is all pics, and the other folder has its own index.html and some htm's. Other than that, it shouldnt really matter nowadays. Share this post Link to post Share on other sites
sparkx 0 Report post Posted February 2, 2007 I have always woundered that also. I never actually thought that there was an actual program diffrance between a .html and .htm Maby one is newer and can do more but so far I havn't found a diffrance yet. All the programs that can be run on HTML and also be run on HTM (as far as I can tell). It seam more logical to use HTM because its shorter but I will probably continue using HTML since everone uses it and Im used to typing it. I agree with everyone else, HTM is probably the lazy way to write HTML. A one letter diffance shouldn't matter unless you have to type it in a textbox with <input type="text" maxlength="25"... or something like that. Funny story I was one letter off of having a link on myspace if I would have known this I would have had that last >Does anyone know the offical reason for this?Thanks,Sparkx Share this post Link to post Share on other sites
iGuest 3 Report post Posted April 8, 2008 Difference between .htm and .html file extension HTM vs HTML: Whats The Difference ? Replying to sandeep Hi Sandeep Web Brower does not see the file extension instead looking only the content of the file and gives an output according to the code Functional wise there is no difference but why two extension are there? 1.The Operating systems like DOS and Windows 3.X does not allow to use 4 letters extension. Hence .Htm is used instead .Html 2.In some cases if the server created it's default directory for only supporting the .Html files then .Htm files cannot use on that server Regards Tamil -reply by Tamilarasan Share this post Link to post Share on other sites
iGuest 3 Report post Posted October 12, 2009 PHP Web Development companyHTM vs HTML: Whats The Difference ?Btw, the 3-character extension was a Windows only limitation. The web is based on Unix which has no such problem.-reply by benivolent Share this post Link to post Share on other sites