SitePoint Sponsor

User Tag List

View Poll Results: .htm or .html

Voters
48. You may not vote on this poll
  • .htm

    18 37.50%
  • .html

    30 62.50%
Page 1 of 2 12 LastLast
Results 1 to 25 of 28
  1. #1
    SitePoint Evangelist
    Join Date
    Jan 2002
    Posts
    420
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .HTM or .HTML ??

    I am wondering who uses what file extension more often when dealing with HTML files, .htm or .html???

    Does it matter in the least bit?

    I use .htm what about the rest of you?
    Wavelan

  2. #2
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    'Don't think it much matters, really. I even go so far to try not to use file extensions whatsoever. After all, the technology you use can change and if you rely on file extensions your links will break. :-)

    ~~Ian

  3. #3
    SitePoint Evangelist
    Join Date
    Jan 2002
    Posts
    420
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So have you never used an HTML file?
    Wavelan

  4. #4
    mouse monkey
    Join Date
    Dec 1999
    Location
    UK
    Posts
    656
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I always used .htm. Just becasue I've always used 3 letter extentions. Dates back to Windows 3.x days.

    I suppose it saves on file space, which on big sites could make a diffence (not that big sites generally use pure html files these days).


    I'm sure I read somewhere though that to be totally standards complient you should use .html instead of .htm . Not possitive on that one though.

  5. #5
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    UK
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Always used .html myself.

  6. #6
    .net install meltdown
    Join Date
    May 2001
    Location
    View Ridge
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    .htm here. Its one less keystroke & I'm slow on the keyboard.

  7. #7
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Wavelan
    So have you never used an HTML file?
    No, I'll use regular files (usually .html because that's the default in HTML-Kit). However, when serving, I try to set it up so that the file extension doesn't really matter (i.e. though content negotiation, which allows you to serve up different language documents at the same URL). For an example of this, you can check out W3C site: they don't use file extensions in their URLs (though, I'm sure they do in their file system).

    They do that so their links won't break if for some reason they switch to PHP (or some other technology) files instead of plain HTML. It also hides the technology they're using making it a little harder for hackers to guess what vulnerabilities to exploit.

    Anyway, whatever you use, you can pretty much bet that you'll get at least a few .htm or .html no matter what the actual extent ion is. So, it's a good idea to check the extension is right before handing people a 404.

    ~~Ian

  8. #8
    SitePoint Addict five40's Avatar
    Join Date
    Jul 2001
    Location
    Imatra, Finland
    Posts
    215
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use .html only
    "-Surely you can't be serious ?
    -Yes I am serious...and don't call me Shirley."

  9. #9
    What? Maelstrom's Avatar
    Join Date
    Oct 2001
    Location
    Whistler BC originally from Guelph Ontario
    Posts
    2,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I always use 3 letters. in all cases all the time

    So .htm
    Maelstrom Personal - Apparition Visions
    Development - PhP || Mysql || Zend || Devshed
    Unix - FreeBSD || FreeBsdForums || Man Pages
    They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.

  10. #10
    SitePoint Zealot blackinwhite's Avatar
    Join Date
    Feb 2001
    Location
    Istanbul/Turkey
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I prefer .htm, since it's shorter.

  11. #11
    SitePoint Zealot DJHK's Avatar
    Join Date
    Feb 2002
    Location
    Los Angeles, CA
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use HTML, don't really know why, but it's probably just habit.
    The InspirAzNz...NetWorK [Down]

  12. #12
    SitePoint Enthusiast limmystar's Avatar
    Join Date
    Feb 2002
    Location
    Sydney, Australia
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I only use HTML
    Limmystar

  13. #13
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use .htm -- since just about every other windows extension used 3 letters, might as well do the same. The 4 letters was back when UNIX needed it to be 4 letters or something

  14. #14
    Typo Negative brokenvoice's Avatar
    Join Date
    Dec 2001
    Location
    Scotland
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by platinum
    The 4 letters was back when UNIX needed it to be 4 letters or something
    Unix doesn't need filename extensions at all, but files are given extensions generally to differentiate the type. The extension can be as long as you like (not really but it can be very long).

    It was given the HTML extension because it's an HTML file. And because it's an HTML file, I use the HTML extension.

  15. #15
    SitePoint Zealot Snegolle's Avatar
    Join Date
    Jan 2002
    Location
    localhost
    Posts
    142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hyper
    Text
    Markup
    Language

    H
    T
    M
    L

  16. #16
    SitePoint Wizard silver trophy TheOriginalH's Avatar
    Join Date
    Aug 2000
    Location
    Thailand
    Posts
    4,810
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    .html - because .htm was just another mod by the microsoft family because Win 3.x was incapable of handling longer extensions. Just me being stubborn really. Might campaign for a new standard and just give all my files (php/html/whatever) a .h extension......

    ...actually, how hard is that to do with Apache - or is it just a case of messing with what php parses??
    ~The Artist Latterly Known as Crazy Hamster~
    922ee590a26bd62eb9b33cf2877a00df
    Currently delving into Django, GIT & CentOS

  17. #17
    SitePoint Wizard silver trophy TheOriginalH's Avatar
    Join Date
    Aug 2000
    Location
    Thailand
    Posts
    4,810
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    ^^ not that hard then, just done it . Have added it as a php mime type - anyone know how "bad" it is to have plain html being parsed - is it a huge server hit or not that significant?

    One thing I've been unable to do is have it automatically display index.h - any idea how that's done? Sorry - I really am drifting ot a little..

    <-- Slap
    ~The Artist Latterly Known as Crazy Hamster~
    922ee590a26bd62eb9b33cf2877a00df
    Currently delving into Django, GIT & CentOS

  18. #18
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    to use `index.h' as an index file, add it to your DirectoryIndex (httpd.conf or .htaccess):

    Code:
    DirectoryIndex index.php index.html index.h etc

    no, i don't think there's much added load parsing straight HTML as PHP. there's no code to execute, so it would "run" very fast. however, since your page is being parsed by PHP, it still becomes "dynamic." that means no `Last-Modified:' response headers from the server, which means no more browser caching. pages will be requested every time since the browser can't send an `If-Modified-Since' request (as with static HTML, images, etc.), because the page is always "modified." i mentioned the same thing in this thread: http://www.sitepointforums.com/showt...threadid=53903

    keep that in mind.


    BTW, you could send `Last-Modifed:' header with PHP and read $_SERVER['HTTP_IF_MODIFIED_SINCE'], if sent, and respond with the appropriate `200 OK' or `304 Not-Modified' headers. that's kinda complicated, though.
    Last edited by DR_LaRRY_PEpPeR; Apr 23, 2002 at 02:46.
    - Matt ** Ignore old signature for now... **
    Dr.BB - Highly optimized to be 2-3x faster than the "Big 3."
    "Do not enclose numeric values in quotes -- that is very non-standard and will only work on MySQL." - MattR

  19. #19
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Yes, I'd have to agree *.htm was in relation to the systems like Windows 3.11 and MS-DOS only really dealt with the three letter extension.

    However I typically use *.htm even though really I also have the choice of *.xhtml or *.xht because I nearly exclusivity use XHTML and more commonly Transitional.

    Therefore in general it tends to be a matter of taste nowadays as long as you follow the rules with extension in relation to file type things should be all right.

    };-) http://www.xhtmlcoder.com/

  20. #20
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i use .html simply because i think it looks phatter... .htm seems soo 'windows' and besides, lay users are more accustomed to .html (or so i've always thought )

  21. #21
    SitePoint Wizard silver trophy TheOriginalH's Avatar
    Join Date
    Aug 2000
    Location
    Thailand
    Posts
    4,810
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Cheers Doc! Good to go now and I've learnt something
    ~The Artist Latterly Known as Crazy Hamster~
    922ee590a26bd62eb9b33cf2877a00df
    Currently delving into Django, GIT & CentOS

  22. #22
    SitePoint Guru moonman's Avatar
    Join Date
    Dec 2000
    Location
    The Sea of Tranquility
    Posts
    696
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    htm for me too. I've no idea why, force of habit I suppose

  23. #23
    long gone but not forgotten AljapaCo's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    548
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    html for me...

    donīt know why, started with it and now itīs just a habit...

    could go for that .xhtml though, just to show off

    and that guy who only used three letter combos...

    how do you include a .js file ???
    T O B I A S - S T R A N D H | visit my site here
    OPERA7 /MSIE6 /FireFox 1.1/Win2000 /ADSL /17" Screen /1024x768
    god doesn't create genius, he clones me.............

  24. #24
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    .html is the "l337" way of doing it. Frontpage uses .htm by default. THe way I look at it, most people who use .htm started off with a WYSIWYG editor that added the .htm extension for them and they've just grown used to it.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  25. #25
    <?php echo(witty title)?> Sal Petrarca's Avatar
    Join Date
    Apr 2002
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by creole
    .html is the "l337" way of doing it. Frontpage uses .htm by default. THe way I look at it, most people who use .htm started off with a WYSIWYG editor that added the .htm extension for them and they've just grown used to it.
    Heh heh heh...j00 w4nn4 t41k 4b0u7 |337??

    I've always used .html myself...The language IS called HTML.....
    Geeks...Rock...Your...Box
    Sites:Dark Moon Rising:::My Site


Bookmarks

Posting Permissions

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