Nov 22, 2009
Pages: 1, 2, 3

HTM vs HTML: Whats The Difference ?

free web hosting

Read Latest Entries..: (Post #23) by iGuest on Oct 12 2009, 10:35 AM.
PHP Web Development company HTM 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
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion & Free Web Hosting > Computers & Tech > Programming > Programming General > Misc. Programming Languages

HTM vs HTML: Whats The Difference ?

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

Comment/Reply (w/o sign-up)

pyost
I believe that it's the same as with *.jpg and *.jpeg. There are probably many examples, but I realy can't explain why it's like that. However, if you have an index.htm and index.html on you web server, one of them will have the advantage.

Comment/Reply (w/o sign-up)

mastercomputers
Always use .html, the three letter extension was due to Windows 8.3 filenaming convention used in DOS because it could not understand 4 letter extensions or long filenames. html is the proper extension and should always try to use this instead of htm.


Cheers,


MC

Comment/Reply (w/o sign-up)

szupie
I thought there were also some UNIX systems that didn't understand extensions with over 3 letters? I didn't know it was Windows DOS's fault. I read some tutorials that told me to always use .htm because some web servers wouldn't accept the long version. And DOS systems probably wouldn't be used for web servers.

Comment/Reply (w/o sign-up)

Houdini
The difference is 1 because HTML has 4 letters and HTM has 3 so 4-1 leaves the difference of 1. Actually as explained earlier by others because extensions used to be limited to three characters (this included email address) htm was used, but now html is better to use for two reason those systems that do understand four letter extensions can read it and those that can't will still display, but I don't think there are even any of those machines still around and if they are they are probably too slow to work properly.

Comment/Reply (w/o sign-up)

mastercomputers
QUOTE(szupie @ Apr 21 2006, 12:03 AM) *

I thought there were also some UNIX systems that didn't understand extensions with over 3 letters? I didn't know it was Windows DOS's fault. I read some tutorials that told me to always use .htm because some web servers wouldn't accept the long version. And DOS systems probably wouldn't be used for web servers.


Unix never really used file extensions though but they also didn't have a problem with file extensions, they never limited how long a file extension could be.

It wasn't until Windows 95 that thousands of sites started appearing with .htm, though .htm existed, it was more apparent at this time (Windows 95 did not understand long filenames till later versions). All this due to FrontPage and because of the 3 letter extensions Windows always relied on.

There were DOS web servers around, just as Apache can run from just a console. The limitations of DOS however caused the extension problems, which case, everyone just decided to go that way, so that it'd work for more people, but now that things have moved on, and these limitations should not be around, I think it's time to actually go with the proper extension.


Cheers,


MC

 

 

 


Comment/Reply (w/o sign-up)

IniX
Other then the obvious, the letter "L," there's not much of a difference between the two extensions. Most, if not all, web browsers and servers will treat a file with an HTM extension exactly as it would a file with an HTML extension, and vice versa.

Comment/Reply (w/o sign-up)

Quatrux
As said mastercomputers, everyone should use .html and as it is already explained way I thin I won't repeat it. smile.gif because there is no such header as text/htm, just that text/html is being used on most of the browsers I know for html, html, shtml. When I see a website using .htm I think that the webmaster/s etc. are not professional there, htm should be avoided in my opinion. smile.gif

Never used frontpage, but as I understand it still saves the files with the three letters extension .htm ?

Comment/Reply (w/o sign-up)

xboxrulz
All modern web browsers will treat text/htm as text/html. It's the same. No one cares anymore. Usually people put .htm for lazy sake.

xboxrulz

Comment/Reply (w/o sign-up)

kgd2006
Htm...is just a shorter way of writing HTML, but both are the same type of extention file name. But it is best that you use html because like many before me have said it is just a lazy way of writing the extension. And it can be that much more work to add an L at the end can it?

Comment/Reply (w/o sign-up)

Latest Entries

iGuest
PHP Web Development company
HTM 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

Comment/Reply (w/o sign-up)

iGuest
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

Comment/Reply (w/o sign-up)

sparkx
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

Comment/Reply (w/o sign-up)

marion
QUOTE(sandeep @ Apr 20 2006, 05:32 AM) *

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.


Comment/Reply (w/o sign-up)

borlafu
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

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2, 3

See Also,

*SIMILAR VIDEOS*
Searching Video's for htm, html
advertisement



HTM vs HTML: Whats The Difference ?

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com