html 和htm文件的区别

看过的许多资料都没有说过htm和html文件有一些区别,所以从来没注意过后缀名的不同有不同的效果。前一阵子做网页,发现有一些标记属性不能在html文件中正确的执行,后来换成htm文件哪些效果就被实现了。上网查过以后才知道他们的区别:
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.


参考网址 :http://www.ncte.ie/wpc/start_html.htm

posted on 2006-04-14 20:24 NaturalNumber 阅读(3083) 评论(3)  编辑  收藏

评论

# re: html 和htm文件的区别 2006-10-25 15:44 ilearn  回复  更多评论   

so good!!

# re: html 和htm文件的区别 2008-04-14 10:17 邬而且  回复  更多评论   

只要努力一切都会好起来的!
数据恢复
<a href=http://www.topfix.com.cn/>广州数据恢复</a>就是将无法正常读取的数据从损坏的存储介质或操作系统中最大限度地还原出来<a href=http://www.topfix.com.cn/>硬盘数据恢复</a>,还原出数据的多少及完整性,要视损坏的程度和故障后的操作而定。<a href=http://www.topfix.com.cn/>数据修复</a>现在市场上有很多成熟的商业数据恢复软件,使用得当,它们会成为<a href=http://www.topfix.com.cn/>服务器数据恢复</a>的利器,使用不当,则会成为数据彻底丢失的罪魁祸首。找专业的<a href=http://www.topfix.com.cn/>硬盘数据修复</a>提供商是丢失数据人的最佳选择

只有注册用户登录后才能发表评论。


网站导航: