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.
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.
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.
Filed Under: Expression Web
About the Author: Minal is a freelance web and graphics designer. She specializes in designing Logos, Stationery, Graphics and Icons as well as website templates using graphical tools like Photoshop, Illustrator and Expression Web. Twitter @saffronstroke