what is the difference between HTML and HTM

There is no difference really. The only concern is that you cannot use them interchangeably in file paths. In other words, if you are linking to a file called "mypage.htm" but the actual file is called "mypage.html", the link won't work. The server will treat mypage.htm and mypage.html as two separate files. Also, some servers are configured to treat "index.htm" as the default page, while others treat "index.html" as the default page. In some rare instances, they will instead treat other files like "index.php" or "default.html" as the default page.
 
We come across many types of files while building webpages. The only way to differentiate between these files is their file name extensions. Web pages are the most common types of files found on web servers. The webpage’s standard file extensions are .htm and .html. Both these extensions are related to HTML, the basic language used for writing webpages. These extensions are usually used for webpages with static content.
 
Hypertext Markup Language, a standardized system for tagging text files to achieve font, colour, graphic, and hyperlink
HTM is other information that can be displayed in a web browser.
 
Back
Top