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.
最新文章
- HTML讲堂第十课 表单设计及表单提交 [09-06]
- HTML讲堂第九课 多视窗口 框架网页 [09-06]
- HTML讲堂第八课 网页的动态、多媒体 [09-06]
- HTML讲堂第七课 表格TABLE标签使用 [09-06]
- HTML讲堂第六课 图像的处理 图像的 [09-06]
- HTML讲堂第五课 建立列表 无序列表 [09-06]
- HTML讲堂第四课 建立超链接 FTP链接 [09-06]
- HTML讲堂第三课 HTML文字版面的编辑 [09-06]
- HTML讲堂第二课 HTML主体标签及属性 [09-06]
- HTML讲堂第一课 HTML概述与基本结构 [09-06]
推荐文章
HTML讲堂第十课 表单设计及表单提
HTML讲堂第九课 多视窗口 框架网
HTML讲堂第八课 网页的动态、多媒
HTML讲堂第七课 表格TABLE标签使
HTML讲堂第六课 图像的处理 图像
HTML讲堂第五课 建立列表 无序列
HTML讲堂第四课 建立超链接 FTP链
HTML讲堂第三课 HTML文字版面的编
HTML讲堂第二课 HTML主体标签及属
HTML讲堂第一课 HTML概述与基本结
FLASH在IE浏览器里需要手动点击更
HTML文档规范化简洁化 HTML TIDY
媒体播放器 在网页中播放CD代码及
浏览器兼容性问题 CSS HACK浏览器
CSS浏览器兼容问题IE6/IE7/Firef
兼容问题 IE6.0,IE7.0与FireFox的
怎样使IE7显示HTML里的Object元素
Hibernate教程之HQL语句讲解及用
HTTP1.1协议服务器状态代码及其各
HTTP协议基础及HTTP协议中POST和


热点文章
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环境下运

