html和htm的区别_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:50:23
Original
1775 people have browsed it

html和htm的区别,最常见的web网页的后缀名是html和htm,这是网页上的

最基本的两种格式。

为什么会有html和htm两种格式的文件呢?

htm来源于老的8.3的文件格式,DOS操作系统只能支持长度为三位的后缀

名,所以是htm,但在windows下无所谓的HTML与HTM,HTML是为长文

件的格式命名的,所以htm是为了兼容过去的DOS命令格式存在的,在效

果上并没有什么区别,以前的htm和html作为不同的服务器上的文本文件,

但现在通用。

什么事8.3文件格式?

这是一种在老的win95或win98文件系统的短文件文件格式,扩展名只限于

3位,文件名只限于8位。如果与16位的系统进行交互,比如说,要把一个

路径传给16位的程序,你就不能用长文件名,而必须对它进行转换。

比如,你在DOS下打开C:\Documents and Settings\yy.txt是不行的
而可以这样打开:C:\Docume~1\xy.txt

在FAT磁盘格式下的DOS中只支持8.3文件格式,如果弄要在这个环境下作应

用,应注意这个文件格式的问题,在NTFS下,默认可以肩痛这种文件格式,

同时也支持长文件名,你也可以通过调整注册表来取消对8.3文件格式的支

持。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!