Whenever you create a new document using Dreamweaver, a new instance of a prebuilt template located in the C:\Program Files\Macromedia\Configuration\DocumentTypes\NewDocuments folder is opened for your use. Depending on what type of file you decide to work with, Dreamweaver includes prebuilt HTML so that you don't have to write it from scratch. For instance, the initial markup for a new HTML document resembles the following:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset="> <title>Untitled Document</title> </head> <body> </body> </html>
In keeping with its philosophy of extensibility, Dreamweaver allows you to open these templates, modify them, and then save them for use later. Why would you want to do this? Assume that you are building a template for a client, and the client wanted to include their own meta information in every page. Rather than manually copying this meta information into every page each time a new page is created, you could easily modify the initial template to include the meta information. This way, each time the user selected the new document option, the template information is automatically included with each page that is created. To modify the initial default document, open the appropriate template file (the type is viewable in the Type view column for your operating system's file explorer) located in the C:\Program Files\Macromedia\Dreamweaver 8\Configuration\DocumentTypes\NewDocuments folder, make the necessary changes, and click Save. To test your changes, choose the New option from the File menu, select the appropriate default document, and click Create.