收录一个工具:
htmlhint
- 官网:http://htmlhint.com/
- 关于使用:
- 在浏览器里面:https://raw.github.com/yaniswang/HTMLHint/master/lib/htmlhint.js
- 在Node环境:npm install htmlhint -g
具体可以查看:
https://github.com/yaniswang/HTMLHint/wiki/Usage
关于配置:
//默认配置
{
'tagname-lowercase': true,
'attr-lowercase': true,
'attr-value-double-quotes': true,
'doctype-first': true,
'tag-pair': true,
'spec-char-escape': true,
'id-unique': true,
'src-not-empty': true
}