Export (0) Print
Expand All

Validation, HTML, Text Editor, Options Dialog Box

These settings allow you to set preferences for how the HTML editor checks the syntax of HTML markup in your document.

To access this dialog box

  1. In Visual Web Developer, in the menu bar, choose Tools, Options.

    The Options dialog box opens.

  2. In the left panel, expand the Text Editor node, expand the HTML node, and then choose Validation.

    If you have configured your environment settings for Web development, the Validation node is at the top level. For more information about environment settings, see How to: Change Select Settings.

Note Note

Additional options for working with the HTML and CSS editors can be found under the HTML Designer node, which is visible if the Show all settings check box is selected.

For more information about validation settings, see Markup Validation in Visual Studio.

Use doctype for validation schema detection

A schema determines which elements, attributes, and capitalization is valid in that schema. (It also determines the tags and attributes that will be available in IntelliSense.) Select this option if you want Visual Studio to use the content of the page's <!DOCTYPE> declaration and html element to determine the schema. For example, if you select this option and the page contains the declaration <!DOCTYPE html>, Visual Studio uses the HTML5 schema. However, if the html tag contains an xmlns attribute, (for example, <html xmlns="http://www.w3.org/1999/xhtml">), Visual Studio uses the XHTML5 schema.

Target when no doctype found

Choose the schema to validate against when there is no <!DOCTYPE> declaration in the page.

Show errors

Select the check box in order to enable validation. If the check box is not selected, the editor will not mark validation errors.

Other options

The remaining check boxes allow you to fine-tune validation by specifying individual types of errors that you want the editor to mark.

Note Note

Some schemas do not offer options to mark individual types of errors. For example, if you choose XHTML 1.1 as the target schema, all option check boxes are disabled, because in that case all types of errors are marked.

Show:
© 2014 Microsoft