W3School provide a validator to check for HTML, XHTML and CSS errors present in the webpage. The validator returns the list of errors according to the chosen web standard. Always validate your web pages before publishing it.
Link: - http://validator.w3.org/