HTM vs HTML: Whats The Difference ?

Pages: 1, 2, 3
free web hosting

Read Latest Entries..: (Post #22) by iGuest on Apr 8 2008, 05:46 AM. (Line Breaks Removed)
Difference between .htm and .html file extension HTM vs HTML: Whats The Difference ? Replying to sandeepHi SandeepWeb 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 ext... read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

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.

Reply

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.

Reply

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

Reply

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.

Reply

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.

Reply

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

 

 

 


Reply

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.

Reply

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 ?

Reply

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

Reply

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?

Reply

Latest Entries

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

Reply

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

Reply

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.


Reply

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

Reply

minnieadkins
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 =/.

Reply


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*

(Maximum characters: 10,000)
You have characters left.

Pages: 1, 2, 3
Recent Queries:-
  1. difference htm html - 3.19 hr back. (1)
  2. .htm .html whats the difference - 9.25 hr back. (1)
  3. .htm vs. .html - 9.54 hr back. (1)
  4. ".htm" vs ".html" - 10.57 hr back. (1)
  5. difference htm and html - 13.41 hr back. (1)
  6. .html v.s. .htm - 25.68 hr back. (1)
  7. html vs htm - 13.81 hr back. (2)
  8. htm file v/s html file - 56.46 hr back. (1)
  9. two index pages htm versus html - 79.21 hr back. (1)
  10. .htm .html difference - 84.91 hr back. (1)
  11. .htm vs .html - 99.59 hr back. (1)
  12. htm html difference - 99.60 hr back. (1)
  13. default.htm vs index.htm - 101.34 hr back. (1)
  14. htm versus html - 71.98 hr back. (2)
Similar Topics

Keywords : htm, html

  1. Video Player
    with html (0)
  2. Some Odd Things With Html Tables
    (1)
    OK well this is making me mad. Maby it is the fact that I am in the middle of an awsome php project
    or it is because I am being outsmarted by html. Anyway I have this real odd thing occuring while I
    am programming. It is a little hard to explain, but when I put RE or RE: in a table cell, the
    next cell has an offset. Here is an example: Example . Now I have tried changing all the vars (for
    css ect) I keep getting the same error. Here is the code I used (simplified for post but the error
    still occurs): CODE <style type="text/css"> .var{ width: 600....
  3. Why Does HTML File Saved Show As IE File?
    (4)
    I saved a little project I was doing that I wanted to use for my new webpage. Well, I saved it in
    regular old notepad and it is strictly in HTML. The space where it says 'type of file' I
    put 'all files' because there is no option for HTML. For file name I put FTVmain.html. But
    for some reason, when I go to notepad to open the file, it shows it as a Internet Explorer file. I
    don't remember an HTML file being shown as an IE file before. Is that what it is supposed to be
    or am I doing something wrong?....

    1. Looking for htm, html

*RANDOM STUFF*





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




HTM vs HTML: Whats The Difference ?



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE