To validate give the following a try:-
I bought "htmlvalidator pro" a long time ago & swear by it. You can check
as you write, it also gives you very helpful error messages. Its tag
inserter inserts the correct tags for the declared Doc Type. Too many good
features to list here.