Check the doctype validity using W3c validator (hml , xhtml, ...) when you create or update your page / post / custom post type and show the result in
How to install the plugin and get it working.
(x)html-easy-validatorfolder to the
you are done
now go the list of your post / page / custom post type in the WP back-end