• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net

.htm vs. .html

acoolguy

New Member
Since I've started designing webpages a while ago, I've always wondered why there were two extensions for html files. I understand that there is no real difference between the two and that you can use them interchangeably, but I'm still curious as to why both exist. Anyone know the history behind this?

Thanks in advance!

[Edited by acoolguy on 12-28-2000 at 12:45 AM]
 

Epgs

NLC Honorary Member
NLC
not sure

i am not sure but i think the only time i really see .htm is on frontpage based websites and .html on non frontpage pages
 

acoolguy

New Member
Well I use both extensions and I don't use Frontpage, so I don't think that's quite it. Thanks anyway though!
 

stu

boogie with stu
NLC
I guess the three letter extension .htm was for convenience for old DOS users, since dos works with filenames with 8 characters max, and 3 characters max for the extension.

It wasn't until Windows95 that DOS was able to support long filenames/extensions.
 
Originally posted by stu
I guess the three letter extension .htm was for convenience for old DOS users, since dos works with filenames with 8 characters max, and 3 characters max for the extension.

It wasn't until Windows95 that DOS was able to support long filenames/extensions.
I think it was originaly .html on unix/linux etc servers. Then when M$DOS came along it had to have a ".htm" option. I like ".htm" better because it saves me from typing one character! ;)
 

Chicken

NLC
NLC
For whatever reason I've always had it in my head that .htm was a MAC thing. I don't know why. Probably not right, but one of those things I thought from the very start of my computing days, and I really never thought about it again. Until now. Thanks! Now I have to research it.

*grrrrrrrrrr*
 

Mandrake

NLC
NLC
Originally posted by Chicken
For whatever reason I've always had it in my head that .htm was a MAC thing. I don't know why. Probably not right, but one of those things I thought from the very start of my computing days, and I really never thought about it again. Until now. Thanks! Now I have to research it.

*grrrrrrrrrr*
I doubt that... Mac files don't need extensions, (although you can add one to them if you so desire)... :)
 

KapTinKiRk

New Member
going off a bit, but I don't think the extensions really matter at all, you could just as easily set your server to read index.anyname files and further personalize your site.
Yahoo! - index.y
Amazon - index.amz

or whatever else.
 

LeX

ლ(╹◡╹ლ)
NLC
I think stu is right about that. As everybody knows, HTML stands for Hyper Text Markup Language, but they had the Internet way before the Win95 days, so since DO$ supports extensions up to only 3 characters, they simply excluded the 'L', which I assume isn't as important as the 'H' or 'T' or 'M'. :)

Also, index.htm and index.html AREN'T the same thing/file... so, some people I know used .htm as NS specific files and .html for IE or vice versa.
 

Robert

NLC
NLC
LOL. I'm bored so I thought I would post that I only use the .htm extension. I don't know why, but I rather have a shorter url with .htm then .html. Beats me. lol.
 

stu

boogie with stu
NLC
Originally posted by Mandrake
Originally posted by Chicken
For whatever reason I've always had it in my head that .htm was a MAC thing. I don't know why. Probably not right, but one of those things I thought from the very start of my computing days, and I really never thought about it again. Until now. Thanks! Now I have to research it.

*grrrrrrrrrr*
I doubt that... Mac files don't need extensions, (although you can add one to them if you so desire)... :)
true.. and DOS and Unix files don't require file extensions either.

From what I can recall, Unix and Mac have always been able to support long file names/extensions. But I could be wrong about really old Macs.
 

Epgs

NLC Honorary Member
NLC
would this relate

would this relate to .ihtml ecelland uses? and who remembers our big discussion over those?
 

Coolin

NL[C]
NLC
ihtml is another type of HTML thingy supported by Windows servers... ihtml is sorta like SSI or PHP but supposed to be more powerful.
 

harrylmh

New Member
Did anyone know that if you put a index.htm and index.html file together under the same directory and view the directory(using url) w/o the file name, the file with the .html displays? I tried this one day cos I was bored and curious.

I was also told that the .htm exist for the convinience of DOS users.
 

Nick

Well-Known Member
NLC
Originally posted by harrylmh
Did anyone know that if you put a index.htm and index.html file together under the same directory and view the directory(using url) w/o the file name, the file with the .html displays? I tried this one day cos I was bored and curious.
This is because the .htaccess usually has this in it:

Code:
DirectoryIndex index.html index.htm index.php etc.. etc..
Since the .html one is first, it is displayed. If .htm was first it would show up..
 

driedpie

New Member
HTM is used as one of the file extensions for HTML pages. When we use HTML files for creating the web pages, then its extension of the file can be in.
 

hoststud

New Member
If server won't accepts the .html extension then you can use .htm instead of it. We can use both the extension alternatively.
 
Top