收录一个工具:
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
}
本文介绍了一个用于检查HTML代码规范性和优化性的工具htmlhint,包括如何在浏览器和Node环境中使用它,以及如何进行配置以确保HTML代码遵循最佳实践。
2998

被折叠的 条评论
为什么被折叠?



