Microsoft FrontPage - How Do I Declare A Default DOCTYPE In My New Web Pages


In Microsoft FrontPage, there is a file on your computer that is used as the 'template' for the new_page_1.htm that's created either when you open your web or when you hit the "New Page" button. The file is called "Normal.htm".


In a normal install of FrontPage 2003, this file is in C:Program FilesMicrosoft OfficeTemplates1033PAGES11 ormal.tem


In a normal install of FrontPage 2000 and 2002, this file is in C:Program FilesMicrosoft OfficeTemplates1033Pages ormal.tem


You can open this file in FrontPage and edit it like you would any other web page. Navigate to the directory where the file is located, open the file and choose File | Properties. You can add things that you want to be common to all the new web pages you create from this point on in all your webs, like Meta tags and DOCTYPE.


Here's a DOCTYPE statement that you can copy and paste into the template, it goes before the <html> tag (in Code/HTML View). The DOCTYPE statement must be at the very beginning of your page. To see what I mean, do a View | Source on this page.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

     "http://www.w3.org/TR/html4/loose.dtd">


When you've added it, do a File | Save As Normal.htm (Yes, you want to overwrite the file). From that point on, every new page you create will have a valid DOCTYPE declaration.


Known exceptions:


  1. When you create a new web and a home page is created for that web (either index.htm or Default.htm), the Normal.htm is not used as a template for that page.
  2. In FrontPage 2002 and 2003, there are several wizards you can use to create a new web - these wizards do not use the Normal.htm file as a template when creating the new web.

Go back