.htm和.html文件扩展名之间的区别是什么?

为什么有两个?

哪个是正确的?


当前回答

这里有一些值得思考的东西。

If you had been using all .htm files on your website and now, for example, you have changed the editor that you are using, and your new editor is outputting all your files with the .html extension. When you re-publish your site to the server, it would seem to me that you could really hurt your SEO position/ranking as many of the links out there in the web, including Google, that were looking for the .htm and not the new .html for that same page. This assumes that you are still using the same page names from your old editor which would make sense.

无论如何……我的观点是,要小心不要失去你已经建立的链接果汁。所以我想在这个例子中,有一个坚持使用.htm的理由……但除此之外,正如其他人所提到的,他们似乎是一样的。

如果我错了,请指正。

我提到这一切的原因是因为这是我在做的过程中,当我想到我可能会破坏网站的SEO与新的编辑器。

原来的编辑器是MS Front Page,它总是输出。htm,现在死了,而新的编辑器“90秒Web Builder 9”输出所有的。html文件…幸运的是,他们肯定考虑到了这一点,并包含了一种将输出扩展名更改回.htm的方法

不管怎样,这是我的观点……希望它能帮助到别人。

其他回答

同样的事情. .根本没有区别…HTM在只有3个字母扩展名很常见的年代被使用。

在功能和支持方面是一样的。(大多数操作系统都能识别,大多数搜索引擎都能识别)

对于我的日常使用,我选择.htm,因为它可以缩短25%的打字时间。

如果计划将文件放在只支持8.3命名约定的机器上,则应该将扩展名限制为3个字符。

否则,最好选择更具描述性的.html版本。

由于现在电脑广泛支持任何长度的文件类型,现在的选择只是个人的。在Windows的早期,只支持3个字母,你必须使用.htm,但现在不需要了。

.html总是用于新文件。.htm是DOS时代的倒退。