dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 15

Thread: HTML vs. HTM

  1. #1
    Join Date
    Dec 2006
    Posts
    86

    HTML vs. HTM

    I can't find any posts on this question, though I'm sure it's been discussed before.

    Other than the letter "L" is there any difference between the way HTM and HTML pages are treated by the browser? Is there ANY other difference between the two? Any convention that says I should use one versus another in a given situation??

    Thanks!

  2. #2
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,943

    Re: HTML vs. HTM

    Absolutely no difference at all except that back in the day Microsoft liked .htm and Unix prefered the .html extension.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Jul 2007
    Location
    Sweden
    Posts
    331

    Re: HTML vs. HTM

    Quote Originally Posted by PeejAvery
    Absolutely no difference at all except that back in the day Microsoft liked .htm and Unix prefered the .html extension.
    I'd like to add that .htm is the inferior extension, and would recommend you use .html as that's the most common and logical one to use.

  4. #4
    Join Date
    Dec 2006
    Posts
    86

    Re: HTML vs. HTM

    Yeah, I tried googling the topic and basically came up with things like "older systems like Windows 3.1 didn't like the 4-character extensions so they used .htm". I just wondered if there was any technical difference.

    I guess even if there WAS, there no longer is.

  5. #5
    Join Date
    Dec 2006
    Posts
    86

    Re: HTML vs. HTM

    Quote Originally Posted by andreasblixt
    I'd like to add that .htm is the inferior extension, and would recommend you use .html as that's the most common and logical one to use.

    How is it inferior??

  6. #6
    Join Date
    Jul 2007
    Location
    Sweden
    Posts
    331

    Re: HTML vs. HTM

    It's less common, basically. Functionally, it's the same (if this ever changes in the future, it'll be html prevailing, not htm, however).

  7. #7
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,943

    Re: HTML vs. HTM

    I would not say that is is inferior, just not as common anymore.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  8. #8
    Join Date
    Dec 2006
    Posts
    86

    Re: HTML vs. HTM

    sounds good to me....thanks!

  9. #9
    Join Date
    Jul 2007
    Location
    Sweden
    Posts
    331

    Re: HTML vs. HTM

    I guess the common interpretation of "inferior" is that it works worse, but I meant htm is not used as much as html, nor is it as logical to use (it's a cut off acronym simply because old Microsoft operating systems didn't use more than 3 characters in extensions).

  10. #10
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: HTML vs. HTM

    Although HTML opens in the default browser, while some HTM files pop open IE!
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  11. #11
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,943

    Re: HTML vs. HTM

    That is just because not all file association preferences are always changed.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  12. #12
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,267

    Re: HTML vs. HTM

    I'm going to throw a spanner in the works asantavicca

    MAybe not as on topic, but still hopefully interesting for you.

    Ever heared of the .HTA extension
    [SIGPIC][/SIGPIC]
    All my Articles
    Hannes

  13. #13
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,943

    Re: HTML vs. HTM

    Ah yes, the wonderful HTML Application. In my opinion...truly a waste of Microsoft's time.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  14. #14
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,267

    Re: HTML vs. HTM

    First, sorry for hijacking this thread a bit, so forgive me.

    What was the whole reasoning behind creating this capability for web pages
    [SIGPIC][/SIGPIC]
    All my Articles
    Hannes

  15. #15
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,943

    Re: HTML vs. HTM

    HTA was introduced with IE4 and was given full application rights without browser constraint. M$ apparently believed that it would be great for update software across the web as well as other code executions. They then realized that it was stupid and a huge security vulnerability. To my knowledge, unless almost crippling IE7 security, it is no longer supported.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)