Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.htm or .html extension - which one is correct and what is different?

When I save a file with an .htm or .html extension, which one is correct and what is different?

like image 998
user21067 Avatar asked Sep 26 '08 11:09

user21067


People also ask

Is .HTM and .HTML the same?

The long answerBoth . 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.

What is the difference between HTML and HTM extensions?

HTM and HTML are both file extensions of HTML files. The only difference is that . HTM is used as an alternate to . HTML for some operating systems and servers that do not accept four-letter extensions.

What is HTM and HTML file?

An HTM or HTML file is a Hypertext Markup Language file and is the standard web page file type on the internet. Since HTM files are text-only files, they just contain text (like what you're reading now), as well as text references to other external files (like the image in this article).

Which is the correct extension of HTML?

An HTML file is nothing more than plain ASCII text, but all HTML files must have a special file extension for web browsers to recognize them. This extension is either . htm OR . html.


1 Answers

Neither is wrong, it's a matter of preference. Traditionally, MS software uses htm by default, and *nix prefers html.

As oded pointed out below, the .htm tradition was carried over from win 3.xx, where file extensions were limited to three characters.

like image 86
William Keller Avatar answered Oct 02 '22 19:10

William Keller