Check your HTML code with the W3C free Markup Validation Service. You can point the validator at a published page or upload a file for checking.
http://www.validator.w3.org
Validate your CSS style sheets to see whether they conform to W3C recommendations.
http://www.jigsaw.w3.org/css-validator