Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Why to use .html instead of .htm extension?

  • Difficulty Level : Basic
  • Last Updated : 09 Jan, 2020

First, we have to know, what is .html and .htm, both of them are an extension for the HTML file type. The .html stands for Hypertext markup Languages. In early 1994, there were all the extensions contains only three letters because four letter extensions were not supported at that time. So basically when we are using HTML file with the filename and extension .html, but the OS is not accepting the .html then .htm comes. Like DOS(Disk operating system) and Windows are accepting the .htm format. Now in this decade, all the operating systems are supported by the larger file extension so .html is acceptable and meaning full compare to .htm, because of that we use .html instead of .htm.

Comparison between .html and .htm:

  1. In this era, all the Operating systems are supported by the lengthy and meaningful extension, .html is supported in this era by all the operating systems. But the .htm extension was supported by DOS in the previous days.
  2. These days main focus is on .html extension for files or web pages. But the .htm extension files are not in focus for modern systems.
  3. All the new operating systems supported by the .html extension but not the old operating systems like DOS. But .htm extension supported by both old and new.

You can use any of those file extensions. Both represent the same content type but depending on the meaningful extension we can use the .html instead of .htm. But .html is not supported by DOS which is not used these days. that’s is the reason we use .html not the old .htm extension.

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

Note: If you save 2 file with the same file name with two different extensions like gfg.html and gfg.htm, then shorter extension will get activated. We just use lengthier extension for better understanding by humans.

My Personal Notes arrow_drop_up
Recommended Articles
Page :