Grunt task

npm install --save-dev grunt-html-validate

Usage

require("load-grunt-tasks")(grunt);

grunt.initConfig({
  htmlvalidate: {
    default: {
      src: ["file.html"],
    },
  },
});

Run with

grunt htmlvalidate