Announcement

Collapse
No announcement yet.

.htm versus .html

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • .htm versus .html

    I have been using .htm for my file extensions without any problems and have always thought that the only difference between .htm and .html was the "l". Since I have been using Dreamweaver and by default it saved all files as .htm I never gave it a second thought.

    However I recently tried inserting a script into a .htm file by adding an htaccess file to allow for the php code to be executed, I found that I would get a server error unless I changed my file extensions to .html.

    My question is why, is there a work around rather than renaming all my file, and does anyone have any explanation as to why this is happening?

    Also, should I have been saving my files as .html all along?

  • #2
    You should be able to do the same .htm as .html with no problems.

    I prefer .html however.

    Comment


    • #3
      What is the difference actually?

      Comment


      • #4
        I dont really think there is a difference. Its just the users personal preference which one to use.

        Code:
        AddType application/x-httpd-php .htm
        This code works fine to execute php code within files with .htm extensions. Just gave it a test.

        Comment


        • #5
          .Htm is a file type designator most commonly used in Microsoft Windows to indicate HTML content. Frontpage uses the extension.

          Originally posted by JLHC View Post
          What is the difference actually?

          Comment

          Working...
          X