W3C Validator PHP Class let’s you programmatically check if any site is W3C valid or invalid, with some extra data like number of warnings/errors, charset and document type of HTML . It is super fast and easy to use. Many websites claim that they are valid although they are not (when check with W3C validator). With this little class you keep track of your websites validity in bulk, or just check you website onload via AJAX .