1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 10:42:07 +02:00
tldr/pages/common/html5validator.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

32 lines
862 B
Markdown

# html5validator
> A command-line tool for testing HTML5 validity.
> More information: <https://github.com/svenkreiss/html5validator>.
- Validate a specific file:
`html5validator {{path/to/file}}`
- Validate all HTML files in a specific directory:
`html5validator --root {{path/to/directory}}`
- Show warnings as well as errors:
`html5validator --show-warnings {{path/to/file}}`
- Match multiple files using a glob pattern:
`html5validator --root {{path/to/directory}} --match "{{*.html *.php}}"`
- Ignore specific directory names:
`html5validator --root {{path/to/directory}} --blacklist "{{node_modules vendor}}"`
- Output the results in a specific format:
`html5validator --format {{gnu|xml|json|text}} {{path/to/file}}`
- Output the log at a specific verbosity level:
`html5validator --root {{path/to/directory}} --log {{debug|info|warning}}`