Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .html, .htm, .shtml

    what is the difference between the three, i know html and javascript i was just wondering what is hte difference between the three.

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    .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

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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...........
    redhead

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    .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

  • #5
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #6
    New Coder
    Join Date
    Jan 2003
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

    shtml yeah server parsed

  • #7
    New Coder
    Join Date
    Dec 2002
    Location
    Florida
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #8
    Regular Coder
    Join Date
    Jun 2002
    Location
    Dallas, Texas
    Posts
    188
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

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

  • #9
    New Coder
    Join Date
    Jan 2003
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 !

  • #10
    Regular Coder
    Join Date
    Jun 2002
    Location
    Dallas, Texas
    Posts
    188
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i thought i was helping by replying to your question. there's no need to get offended.

  • #11
    New Coder
    Join Date
    Jan 2003
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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...


  • #12
    Regular Coder
    Join Date
    Jun 2002
    Location
    Dallas, Texas
    Posts
    188
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry!

  • #13
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •