You can try the C # article Check XHTML on Dot Net Perls.
If you're not tied to this in C #, then the W3C validation service is usually the best way to validate HTML .
You could, of course, write some kind of test harness in C # that pushes all your HTML through the W3C validator, if that makes sense in your case.
source
share