Htmllint is a tool to lint (check) html for potential issues. It is typically used as part of a build tool like Gulp or Grunt.
Htmllint is a tool to lint (check) html for potential issues. It parses the DOM inside the fragment and checks for potential problems and style issues. Rules may include things like:
- Checking for naming conventions on
class
attributes; - Checking for banned tags (e.g.
style
orblink
) and attributes (e.g.style
); - Line ending format consistency;
- Etc.
It is typically used as part of a build tool like Gulp (e.g. using the gulp-htmllint
plugin) or Grunt (e.g. using grunt-htmllint
).