In short
A script that refuses bad output before it ships. The does not get to decide whether its work is good enough. The validator does.
A validator is a small program that checks output against rules and fails loudly when a rule is broken. A page with two images side by side. A post without a required section. A file that will not compile. The validator catches it and the must fix it before anything publishes.

