For programmatic checking of modern HTML documents, use the API provided by the W3C HTML Checker. To do that, call https://validator.w3.org/nu/ or the URL for another instance of the W3C HTML Checker, and consult the following documentation: