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 7 of 7

Thread: . htm or .html

  1. #1
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts

    Exclamation . htm or .html

    will some kind person explain the differences between the .htm file and the .html file please.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #2
    Regular Coder BoldUlysses's Avatar
    Join Date
    Jan 2008
    Location
    Winston-Salem, NC
    Posts
    938
    Thanks
    10
    Thanked 190 Times in 187 Posts
    Hi Frank,

    There is no difference from a functional standpoint.

    ...originated because some early operating systems and file systems, such as DOS and FAT, limited file extensions to three letters.
    matt | design | blog

  • #3
    New Coder
    Join Date
    Feb 2009
    Location
    Norway, Europe
    Posts
    94
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Technically, there isn't really a difference nowadays.

    Earlier, though, on 3-letters were used after a '.', like '.doc' '.txt' etc. Now, more than 3 are allowed, so you can use '.html'.

    I guess that if someone has a quite old computer, they can't open it, but most people don't now. I always use '.htm'; just to be on the safe side.

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    The reason the HTM extension was available is because of the 8.3 filename restriction imposed by FAT in versions of Windows before 95. I find it a pointless exercise to continue with HTM: it's a continuing trend to completely drop the three-letter filename rule (cf. the docx, xlsx, mpeg4 &c.). I've always used HTML, but as a web designer I'm relatively young. I also find HTML looks prettier. =P

  • #5
    Regular Coder
    Join Date
    May 2008
    Location
    Oxford, UK
    Posts
    422
    Thanks
    14
    Thanked 27 Times in 27 Posts
    First reply said it, no need for any more duplicates!

  • #6
    Regular Coder jamesicus's Avatar
    Join Date
    Oct 2008
    Posts
    106
    Thanks
    0
    Thanked 11 Times in 10 Posts
    There is no practical difference. I use the .htm extension to serve web pages as content (MIME) type text/html and the .html extension to serve pages as content (MIME) type application/xhtml+xml. I set the associations via .htaccess in order to facilitate serving XHTML.

    James
    Web Developer Tool Kit - for creating Standards compliant and Interoperable web pages
    W3C Markup Validation Service - validate HTML code for reliable rendering in all Browsers
    WAVE accessibility evaluation tool - check page structure, image alt text, form labels, etc.

  • #7
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Thanks to you all for your informative replies. Why I asked was because some programs baulk at loading a file unless it is specific. Either htm or html. My own editor is a case in point. Henceforth I will use html always. (Promises, promises!)

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.


  •  

    Posting Permissions

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