To set these validations

Go to tools menu-> Options menu item in VS or Visual Web Developer.
Select the Text Editor->Html->Validation tree option in the left-hand side of the options window,
Select the target as XHTML 1.0 transitional (Netscape7, opera 7, InternetExplorer 6) and check the “Show Errors” checkbox:
Note: HTML validation errors will not block a web application from compiling / running.