What is the difference between files with extensions .html and .htm

Both HTM and HTML are file extensions of HTML files. They are files of a plain text type. There are some differences between HTML and HTM. First of all let’s discuss what file extensions are.

What is the difference between a .html and a .htm page? - Quora

File Extensions:

File extensions are suitable for operating systems because it is used in identify the type of data file thus they can find a suitable program to read or edit it.

HTML:

HTML stands for Hyper Text Markup Language. HTML is a markup language which helps in making web pages. They are represented as htm or html in file extensions. When you make a web page with the help of html files then an htm will most probable seem in the end of its URL.

HTM

It is only used as an alternate extension to HTML. There are some reasons for this happens are discuss below as an example. There are several operating systems such as the Disk Operating System and Windows 3.X. These operating systems are not allowing the use of four-letter extensions. Thus use HTM as an alternative of HTML. There are only three-letter extensions, which are used in Windows such as ‘doc’ and ‘exe’, thus HTM is more suitable here. In several cases with other server’s if they make their default directory to support HTM files. Therefore, HTM is not used on that server. In earlier days, HTM was commonly used in that period when DOS (Disk Operating System) was used. Presently, computers are used, which may support big files and wide length of names of file. So a four-letter is not a problem.

In Internet, when you can type a URL without HTM or HTML extensions, web browsers are not seen the file extensions and the browser can find the source and show its contents. HTM and HTML are only two of the thousands of types of file extensions. Presently, HTML is more popular because it is the most common web page format used.

13 Comments Add yours

  1. Dulcy💕's avatar Dulcy Singh says:

    Thanks for sharing such a great informative post.

    Liked by 2 people

    1. daneelyunus's avatar daneelyunus says:

      Most welcome, thanks for appreciation and reading my post

      Liked by 1 person

      1. Dulcy💕's avatar Dulcy Singh says:

        I learnt something new 😊

        Liked by 1 person

      2. daneelyunus's avatar daneelyunus says:

        Thank you so much 😊

        Liked by 1 person

  2. Anjali Tiwari's avatar Anjali Tiwari says:

    It’s really informative. Thanks for sharing it.

    Liked by 2 people

    1. daneelyunus's avatar daneelyunus says:

      Most welcome, thanks for appreciation and reading my post

      Liked by 1 person

      1. Anjali Tiwari's avatar Anjali Tiwari says:

        ☺️

        Liked by 1 person

  3. TINY SPECS's avatar TINY SPECS says:

    Good knowledge

    Liked by 2 people

    1. daneelyunus's avatar daneelyunus says:

      Thank you 😊

      Liked by 1 person

Leave a Reply