HTML文档规范化简洁化 HTML TIDY介绍及使用
近来猛做前端UI交互,感觉自己好象从后转前了.做前端时,总离不开一大骡子永远都无法看透的HTML代码,嵌套那么多层次,真是看得人眼花.标签那么多,一不小心就犯错,一 错了就乱了布局,而且很难发现.下面,引用从W3C官方来的文章HTML TIDY,功能强大的工具,可以规范化简洁化我们的HTML代码.好好欣赏吧!
The maintenance of Tidy has now been taken over by a group of enthusiastic volunteers at Source Forge, see http://tidy.sourceforge.net. There you can find the source code and binaries for a very wide range of platforms. Tidy is also available as a library TidyLib, which has been designed for easy integration with other software. This page is now somewhat dated, so for the latest information please visit the Source Forge site.
Introduction to TIDY
When editing HTML it's easy to make mistakes. Wouldn't it be nice if there was a simple way to fix these mistakes automatically and tidy up sloppy editing into nicely layed out markup? Well now there is! Dave Raggett's HTML TIDY is a free utility for doing just that. It also works great on the atrociously hard to read markup generated by specialized HTML editors and conversion tools, and can help you identify where you need to pay further attention on making your pages more accessible to people with disabilities.
Tidy is able to fix up a wide range of problems and to bring to your attention things that you need to work on yourself. Each item found is listed with the line number and column so that you can see where the problem lies in your markup. Tidy won't generate a cleaned up version when there are problems that it can't be sure of how to handle. These are logged as "errors" rather than "warnings".
Dave Raggett has now passed the baton for maintaining Tidy to a group of volunteers working together as part of the open source community at Source Forge. The source code continues to be available under an open source license, and you are encouraged to pass on bug reports and enhancement requests at http://tidy.sourceforge.net.
If you find HTML Tidy useful and you would like to say thanks, then please send me a (paper) postcard or other souvenir from the area in which you live along with a few words on what you are using Tidy for. It will be fun to map out where Tidy users are to be found! My postal address is given at the end of this file.
The W3C public email list devoted to HTML Tidy is: <html-tidy@w3.org>. To subscribe send an email to html-tidy-request@w3.org with the word subscribe in the subject line (include the word unsubscribe if you want to unsubscribe). The archive for this list is accessible online. If you would like to contact the developers, or you just want to submit an enhancement request or a bug report, please visit http://tidy.sourceforge.net.
Tidy can now perform wonders on HTML saved from Microsoft Word 2000! Word bulks out HTML files with stuff for round-tripping presentation between HTML and Word. If you are more concerned about using HTML on the Web, check out Tidy's "Word-2000" config option! Of course Tidy does a good job on Word'97 files as well!
Tidy features in an article by Scott Nesbitt on webreview.com, and more recently on Dave Central's Best of Linux, and as tool of the month on Unix Review by Joe Brockmeier, who writes:
"One thing I love about the UNIX philosophy is the idea that each program should do one job and do it really well. There are zillions of small tools for UNIX-type OSes that make life much easier and are hugely useful, but they don't necessarily get written about. They certainly don't receive the same kind of coverage that Apache and Sendmail receive. One of my favorites, HTML Tidy, is a tool for HTML/Web development that I think will interest a lot of folks. HTML Tidy cleans up HTML produced by WYSIWYG editors and such."
Tidy is available as a downloadable binary, as source code (ANSI C), or as an online service at W3C, Info Network, HTML Help's site Valet and other sites.
最新文章
- FLASH在IE浏览器里需要手动点击更新 [06-13]
- HTML文档规范化简洁化 HTML TIDY介 [03-17]
- 网页嵌入播放WMA格式文件的代码及实 [03-16]
- 媒体播放器 在网页中播放CD代码及脚 [03-16]
- 浏览器兼容性问题 CSS HACK浏览器兼 [03-10]
- FireFox和IE浏览器对于DIV+CSS设计 [03-10]
- CSS浏览器兼容问题IE6/IE7/Firefox [03-10]
- 兼容问题 IE6.0,IE7.0与FireFox的C [03-10]
- XHTML+CSS浏览器兼容性解决方案小集 [03-10]
- IE与FireFox里CSS的浏览器兼容要点 [03-10]
推荐文章


热点文章
JS实现浏览器菜单命令
利用ASP打造网站论坛DIY(上)--强
计算机常用英语、术语、词汇表
介绍一个免费的具备数据显示/录入
Linux 常用命令(磁盘管理)
SQL Server SQL语句导入导出大全
文字发音动态链接库函数调用说明
VC++下使用ADO编写数据库程序
程序员四大忌
SQL语句大全
在线媒体播放器全新揭密
SQL Server SQL语句导入导出大全
ASP开发web站点
HTML语言剖析_表格标记
用VB实现软件试用期
使用JavaScript访问XML数据
Linux 常用命令(进入与退出系统)
在Web页中使用Media Player
document.execCommand() 解析
有关网页制作的一些基本概念
注册表在IE中的应用技巧
三种禁用FSO组件的方法
ASP教程:堵住ASP漏洞
Linux 常用命令(系统管理)
SQL Server SQL语句导入导出大全
VC++下使用ADO编写数据库程序
挂QQ的网页源代码[ASP/PHP/JS
关于ASP访问ACCESS数据的错误的探
SQL Server SQL语句导入导出大全
Linux 常用命令(在Linux环境下运

