htmlhint

Find HTML errors and style issues in your code

brewmacoslinux
Try with needOr install directly
Source

About

Static code analysis tool you need for your HTML

Commands

htmlhint

Examples

check single HTML file for errors$ htmlhint index.html
lint all HTML files in a directory$ htmlhint src/**/*.html
check HTML and show detailed error report$ htmlhint --format json mypage.html
validate HTML using custom rule configuration$ htmlhint --config .htmlhintrc index.html
scan multiple files and ignore specific rules$ htmlhint --rules id-class-value-must-valid *.html