Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 295177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:26:04+00:00 2026-05-12T06:26:04+00:00

What is the difference between the .htm and .html file extension? Why there are

  • 0

What is the difference between the .htm and .html file extension?

Why there are two of them?

Which is correct?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T06:26:05+00:00Added an answer on May 12, 2026 at 6:26 am

    The short answer

    There is none. They are exactly the same.

    The long answer

    Both .htm and .html are exactly the same and will work in the same way. The choice is down to personal preference, provided you’re consistent with your file naming you won’t have a problem with either.

    Depending on the configuration of the web server, one of the file types will take precedence over the other. This should not be an issue since it’s unlikely that you’ll have both index.htm and index.html sitting in the same folder.

    We always use the shorter .htm for our file names since file extensions are typically 3 characters long.

    AND MORE ON: http://www.sightspecific.com/~mosh/WWW_FAQ/ext.html or http://www.sightspecific.com/~mosh/WWW_FAQ/ext.htm

    I think I should add this part here:
    There is one single slight difference between .htm and .html files. Consider a path in your server like: mydomain.example/myfolder. If you create an index.htm file inside that folder and you open that like this: mydomain.example/myfolder/, it will go crazy and spit out your files as it is in your server,An image describing the bug with .htm files
    but if you create an index.html file in there and open that directory in your browser, it will load that file.
    I tested this on my VPS and found this.
    Maybe you could somehow set your server to load index.htm files by default, but I guess the .html file is the default file type for browsers to open in each directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: .htm vs .html What is the difference between .html and .htm file
What is the difference between these extensions: *.htm or *.html //HTML *.jpg or *.jpeg
Regarding the specifications here: http://www.omg.org/technology/documents/formal/uml.htm What is the difference between without and with change
Another newbie question. I just wanted to know what exactly is the difference between
What is the difference between shared library text and shared library data? Also, what
i tried to use Syntax Highlighter in a XHTML/CSS Template. i noticed if i
I have an internal web application, that is IE specific, and uses a lot
I am somewhat new to unicode and unicode strings. I'm trying to determine the
I am kicking off some process improvements at a new company. One of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.