html5validator

A command line tool for testing HTML5 validity.

TLDR

Validate a specific file

>_ html5validator [path/to/file]
copy

Validate all HTML files in a specific directory

>_ html5validator --root [path/to/directory]
copy

Show warnings as well as errors

>_ html5validator --show-warnings [path/to/file]
copy

Match multiple files using a glob pattern

>_ html5validator --root [path/to/directory] --match "[*.html *.php]"
copy

Ignore specific directory names

>_ html5validator --root [path/to/directory] --blacklist "[node_modules vendor]"
copy

Output the results in a specific format

>_ html5validator --format [gnu|xml|json|text] [path/to/file]
copy

Output the log at a specific verbosity level

>_ html5validator --root [path/to/directory] --log [debug|info|warning]
copy

Copied to clipboard
free 100$ digital ocean credit