Manual:$wgValidateAllHtml/en

Details
Validate the overall output using tidy and refuse to display the page if it's not valid.