.htm和.html文件扩展名之间的区别是什么?
为什么有两个?
哪个是正确的?
.htm和.html文件扩展名之间的区别是什么?
为什么有两个?
哪个是正确的?
当前回答
如果计划将文件放在只支持8.3命名约定的机器上,则应该将扩展名限制为3个字符。
否则,最好选择更具描述性的.html版本。
其他回答
在功能和支持方面是一样的。(大多数操作系统都能识别,大多数搜索引擎都能识别)
对于我的日常使用,我选择.htm,因为它可以缩短25%的打字时间。
同样的事情. .根本没有区别…HTM在只有3个字母扩展名很常见的年代被使用。
.html总是用于新文件。.htm是DOS时代的倒退。
我想现在有点晚了,但是唯一一次它确实有区别是当你在MS Outlook上设置HTML签名时(甚至是2010年)。它只是不能处理.html扩展,只能处理.htm
这里有一些值得思考的东西。
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的方法
不管怎样,这是我的观点……希望它能帮助到别人。