The W3C maintains an HTML Validation service that you can use to validate the HTML on your site. They also have a CSS Validator. You can check the staging version of your site before you publish it. If your site is one of those that is protected by a password, the W3C Validator will ask you for this password before continuing with its check.