Jump to content
xisto Community
sandeep1405241520

HTM vs HTML: Whats The Difference ?

Recommended Posts

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

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

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

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

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

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.