...

View Full Version : .html, .htm, .shtml



chrismiceli
11-08-2002, 02:50 AM
what is the difference between the three, i know html and javascript i was just wondering what is hte difference between the three.

Nightfire
11-08-2002, 03:00 AM
.htm is the same as .html This is what I've heard, might be true, might not be. html files were named .htm when the internet first began, as it could only handle 3 letter extensions, .htm, .asp etc, and it was the same with domain name, .com, .net, .org. So .html and .htm are no different from eachother, apart from the l.

shtml is by using SSI (Server Side Includes), which allows you to make pages more dynamic on the server and I think you can access a database with it, not sure though as I've never used it, played with it nor read anythign to do with it :p

redhead
11-08-2002, 05:35 PM
i thought .html came first... and .htm was a result of microsofts never ending quest to make all file extensions three letters long, which could result in world domination...........

brothercake
11-08-2002, 05:47 PM
.shtml is for "server-parsed html" - it relates to an apache module called "mod_includes", better known as SSI. SSI is useful, but very limited; with no iteration capabilities you can't do very much more than file includes conditionalised by environment variables.

But it should be stressed that filenames are just conventions. It could be anything. If you can control the mime-types on your server, you can associate any filename with any process - such as ".phtml" for php pages (another common convention), or ".anything" for .. er ... anything

degsy
11-08-2002, 07:09 PM
or even no extension:

http://www.degs.co.uk/pictures/prs
Which will still diplay the .jpg file because the sever knows it is an image.
You can do the same with HTML pages.

ricardovw
01-17-2003, 04:30 AM
i thought htm, was for offline files

and html was for live files...

not that it matters but i read that was the way it should go...

but im confused now :confused:

shtml yeah server parsed

MrDoubtFire
01-17-2003, 02:40 PM
i thought .html came first... and .htm was a result of microsofts never ending quest to make all file extensions three letters long, which could result in world domination...........


Yes, html came first. I know because I was there when the web first started it's journey, and started learning this fledgling language. ".htm" came later, and I think it came from one of Microsoft's ventures. Since it is so large and influential a company, it became accepted that .htm was synonymous with .html

applesauce
01-17-2003, 03:33 PM
Originally posted by ricardovw
i thought htm, was for offline files

and html was for live files...

not that it matters but i read that was the way it should go...

but im confused now :confused:



i think your web browser reads an html (or htm) file the same way regardless of where the file is (on your computer or another computer, ie server on the web).

ricardovw
01-17-2003, 06:22 PM
well i know that they are exactly the same, now... but at first that was the planning they had for them, then microsoft just merged them, in a sort of way...

and i got this from "Dynamic HTML by MIchele Petrovsky pg 281"

i thought it sounded stupid and i dont really give a damn !

applesauce
01-17-2003, 06:38 PM
i thought i was helping by replying to your question. there's no need to get offended.

ricardovw
01-17-2003, 06:45 PM
no no no dont get me wrong !!! im not mad, or offended, i just wanted to say that i didnt made that up, and i said i thought it was stupid the quote not u or anything said above...

:thumbsup:

applesauce
01-17-2003, 07:26 PM
sorry!
:)

Roy Sinclair
01-17-2003, 07:30 PM
To be more precise about how .htm came to be synonymous with .html is because many file systems (including but not limited to the ones supported by Microsoft) only support file names with three character extensions so the extension was simply truncated on those systems. It's been a long time since files on MS systems had those limitations but the consequences of such limitations often live on long after the reason for them is gone.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum