Validate your HTML files. You can use any commercial software package or free online application such as the World Wide Web Consortium (W3C) HTML Validator at http://validator.w3.org/. As an alternative, when you finish coding a form, you can open it in any visual HTML editor to validate that the HTML is well-formed.
Additionally, validate the HTML files against the XSD files.