.htm和.html的区别

HTML:
               html was the original extension for HTML pages on Unix Web hosting machines.
HTM:
               htm was created by Windows/DOS because of it's requirement for 3 character extensions.



参考网址 :http://webdesign.about.com/od/beginningtutorials/a/aa072700a.htm

Filenames

HTML documents use the .htm or. html file extensions, e.g. index.htm or index.html can be used to name your opening page. It also a good idea to use lowercase lettering when naming files. In short, a link specifying a file called History.htm will not work if the file is named history.htm, and a link specifying a file called history.html will not work if the file is named history.htm.

Tips:

  • HTML tags should be in Upper Case letters to help differentiate from ordinary text.
  • All HTML files in your project should be named with either a .htm or .htmlextension. Do not use both extension types in the same project.
  • All HTML file names should be in lower case, with letters and numbers only. Do not use spaces or odd characters (%$£&*).
  • Backup your Web Site regularly. If you have WinZip or another compression program, you can achieve this by right-clicking on the folder and choosing "Add to Zip". A few seconds later you have a disaster-management and contingency program.

Note: While there are many excellent HTML editors available, it is useful to know enough HTML to code a document before you begin such an editor. The web pages created by such editors may require some "tweaking" of the HTML code in order to work as you would like them to, and it is much easier to do this if you have a grounding in HTML basics.

看了上面的资料可以明白:

实际上HTM与HTML没有本质意义的区别,HTM只是微软为了满足DOS仅能识别8+3的文件名而自己创建的文件格式,即文件名长度最长为8个字符,扩展名最长为3个字符。

注意:扩展名不同,也即意味着两个文件不同,不是同一个文件,比如index.htm和index.html是两个不同的文件,对应着不同的地址。
 
HTM 为Windows/DOS系统的文件格式,设计目的是为了满足DOS系统的要求;
HTML 为Unix系统的文件格式;

 

目前建议用HTML

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值