Valid web pages are those that return no errors based on the type of HTML/XHTML specified in the doctype declaration at the beginning of the file. The Validator checks that the code used on the web page conforms to the specifications for that version of HTML/XHTML. Web page validity can be checked through various validation services, most commonly the W3C Validator.