jump to navigation

Set Document Type Information in Microsoft Expression Web 2 March 31, 2009

Posted by minals in Expression Web Tips and Tricks.
Tags: , , , , , , , , ,
trackback

DocType describes a Document Type Definition (DTD).The DocType declaration in your web pages let the browsers determine which version of HTML, the pages use. It also determines the schema the Expression Web uses to drive the incompatibility notifications and IntelliSense for HTML and script. If the DocType declaration is missing in your page then Expression Web uses a secondary schema; also displays a warning shown below, that indicates there is an incompatibility in your code with the HTML schema you have selected.

incomp_warn

 

An example of a DocType declaration is given below:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

You can set a default DocType in Microsoft Expression Web to automatically insert the declaration in new pages. Follow these steps:

1.       Go to Tools > Choose Page Editor Options

2.       In the Page Editor Options dialog box, switch to Authoring tab and select the Doctype and Secondary Schema you would like to use.

doctype_options

If you do not want Expression Web to insert a DocType declaration in new pages you create, choose ‘None’ in Document Type Declaration dropdown box.

none_opt

 

 

 

 

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.