sandeep
Apr 20 2006, 08: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. |
Comment/Reply (w/o sign-up)
pyost
Apr 20 2006, 09:23 AM
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
Apr 20 2006, 10:54 AM
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
Apr 20 2006, 12:03 PM
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
Apr 20 2006, 12:39 PM
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
Apr 21 2006, 11:44 AM
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
Apr 21 2006, 03:29 PM
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
Apr 23 2006, 03:48 PM
As said mastercomputers, everyone should use .html and as it is already explained way I thin I won't repeat it.  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.  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
Apr 23 2006, 07:33 PM
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
Apr 23 2006, 07:49 PM
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)
iGuest
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
Comment/Reply (w/o sign-up)
iGuest
Apr 8 2008, 05:46 AM
Difference between .htm and .html file extension
HTM vs HTML: Whats The Difference ?
Replying to sandeepHi 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
Feb 2 2007, 12:48 AM
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
Feb 1 2007, 01:58 PM
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
Nov 12 2006, 12:03 PM
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)
Similar Topics
Keywords : htm, html
- Video Player
with html (0)
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 .var{ width: 600px; } RE This is one cool forum. ....
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?....
Looking for htm, html
|
See Also,
*SIMILAR VIDEOS*
Searching Video's for htm, html
|
advertisement
|
|