Forrest logo
back to the html5validator tool

html5validator:tldr:e3993

html5validator: Match multiple files using a glob pattern.
$ html5validator --root ${path-to-directory} --match "${*-html *-php}"
try on your machine

This command is using the html5validator tool to validate HTML and PHP files within a specified directory.

Here is a breakdown of the command:

  • html5validator: This is the executable command used to run the HTML5 validator tool.

  • --root ${path-to-directory}: This flag specifies the root directory from which to start validating. ${path-to-directory} should be replaced with the actual path to the target directory.

  • --match "${*-html *-php}": This flag specifies the file types to match for validation. It uses a pattern to match files that end with -html or -php. The * acts as a wildcard, meaning any characters can appear before the -html or -php suffix.

So when you run this command, the HTML5 validator will recursively search for files ending with -html or -php within the specified directory and validate them for HTML5 compliance.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the html5validator tool