Export (0) Print
Expand All

Setting the targetSchema Property of an HTML Document

Visual Studio .NET 2003

The targetSchema property of an HTML document determines the Web browser for which an HTML document will be designed. To use CSS styles, select a Web browser that supports HTML 4.0 or later.

Setting the targetSchema property in Visual Studio .NET inserts a <meta name="vs_targetSchema"> element into the <HEAD> portion of the active HTML document:

<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">

For more information, see targetSchema Property.

You can set the targetSchema property for one document at a time, either in the HTML Document Properties, Properties Window or in the General Tab, DOCUMENT Property Pages Dialog Box.

To set the targetSchema property in the Properties window

  1. Open an HTML document for editing in the HTML Designer.
  2. At the top of the Properties window, choose DOCUMENT properties.
  3. Select the targetSchema property, and choose a value from its drop-down list.

To set the targetSchema property in the DOCUMENT Property Pages dialog box

  1. Open an HTML document for editing in the HTML Designer.
  2. At the top of the Properties window, choose DOCUMENT properties.
  3. On the View menu, select Property Pages.

    The DOCUMENT Property Pages dialog box opens.

  4. Select the General tab.
  5. Choose a value from the Target Schema drop-down list.

See Also

Properties Window | Working With CSS Styles | Creating Scripts and Editing Event Handlers in HTML Designer | Previewing an HTML Page in a Web Browser | Web Browser, Environment, Options Dialog Box | HTML Tab, Toolbox | Web Forms Tab, Toolbox

Show:
© 2014 Microsoft