Another newbie question. I just wanted to know what exactly is the difference between html and htm extensions we see for webpages. Are they same? and if so then why two extensions for the same purpose?
另一个新手问题。我只是想知道我们在网页上看到的html和htm扩展名之间究竟有什么区别。它们一样吗?如果是这样,为什么两个扩展为了同一目的?
Thanks
4 个解决方案
#1
25
The Web was originally designed by UNIX-centric people, for whom long filenames with arbitrarily long extensions were the norm.
Web最初是由以UNIX为中心的人设计的,对于这些人来说,具有任意长扩展名的长文件名是常态。
MS-DOS and early versions of windows were limited to 8.3 filenames, so the extension .html was not possible. Microsoft users had to use .htm instead.
MS-DOS和Windows的早期版本限制为8.3文件名,因此扩展名.html是不可能的。微软用户不得不使用.htm。
Nowadays, there is no reason to use .htm. Use .html in all cases.
如今,没有理由使用.htm。在所有情况下都使用.html。
#2
9
They are the same.
他们是一样的。
HTM was used because some systems did not support 4-character extensions.
This is no longer true, and there is no longer any reason to use HTM.
使用HTM是因为某些系统不支持4字符扩展。这已不再适用,并且不再有任何理由使用HTM。
#3
8
They are the same, but htm is used for file systems that expect 3 character file extensions. For historical reasons htm is often used on Windows systems. This follows the conventions established by the 8.3 naming restriction in the FAT file system, but there is no technical reason for a three character limit on modern file systems.
它们是相同的,但htm用于期望3个字符文件扩展名的文件系统。由于历史原因,htm通常用于Windows系统。这遵循FAT文件系统中8.3命名限制建立的约定,但是对于现代文件系统的三字符限制没有技术原因。
#4
7
They're exactly the same. Originally, Unix based servers used html extensions and Microsoft IIS used htm, but now they're treated exactly the same.
他们完全一样。最初,基于Unix的服务器使用html扩展,而Microsoft IIS使用htm,但现在它们的处理方式完全相同。
#1
25
The Web was originally designed by UNIX-centric people, for whom long filenames with arbitrarily long extensions were the norm.
Web最初是由以UNIX为中心的人设计的,对于这些人来说,具有任意长扩展名的长文件名是常态。
MS-DOS and early versions of windows were limited to 8.3 filenames, so the extension .html was not possible. Microsoft users had to use .htm instead.
MS-DOS和Windows的早期版本限制为8.3文件名,因此扩展名.html是不可能的。微软用户不得不使用.htm。
Nowadays, there is no reason to use .htm. Use .html in all cases.
如今,没有理由使用.htm。在所有情况下都使用.html。
#2
9
They are the same.
他们是一样的。
HTM was used because some systems did not support 4-character extensions.
This is no longer true, and there is no longer any reason to use HTM.
使用HTM是因为某些系统不支持4字符扩展。这已不再适用,并且不再有任何理由使用HTM。
#3
8
They are the same, but htm is used for file systems that expect 3 character file extensions. For historical reasons htm is often used on Windows systems. This follows the conventions established by the 8.3 naming restriction in the FAT file system, but there is no technical reason for a three character limit on modern file systems.
它们是相同的,但htm用于期望3个字符文件扩展名的文件系统。由于历史原因,htm通常用于Windows系统。这遵循FAT文件系统中8.3命名限制建立的约定,但是对于现代文件系统的三字符限制没有技术原因。
#4
7
They're exactly the same. Originally, Unix based servers used html extensions and Microsoft IIS used htm, but now they're treated exactly the same.
他们完全一样。最初,基于Unix的服务器使用html扩展,而Microsoft IIS使用htm,但现在它们的处理方式完全相同。