A template is a common structure of the web site that most of your web pages use. You can create the basic layout and navigation system once and use it as a template for each of your pages. Macromedia Dreamweaver templates can be modified at any time, and the changes will be updated on each template-based page. To create a Dreamweaver template, you need make your web page as usual with the basic structure of the site. For this page in this example, the logo, the Web site title, and navigation should be common to most of the pages in my site. The page content should be unique and different from page to page. Once you create a structure, you need go to File > Save as Template, and give a name to the Template. Click on Save. You need notice that the blue bar on the top says <<Template>>. You now are in the Template. The template is automatically saved under a folder called templates. You can create as many templates as you like. If you are using different layouts for different sections of your site, you can use different templates for each of the sections.

Now you need to make parts of the template editable so that you can put in content and add information that is unique to parts of the site. As the main content of the pages will keep changing, let's make that region editable. To make an area editable, you need your cursor to be in that location, and then right-click inside of the body column, select Templates > New Editable Region, give an appropriate name and click OK. If you are successful, you will notice a light blue with the name of the editable region in your cursor's location. You can continue to make changes, try different layouts, add new stuff in the Template.

Once you have successfully made your Template, your job is not yet over. You still need to make sure that all the pages are using the Template, so that when you update the Template the pages using the Template will automatically get updated. Now we will create a new page and try to apply the template to this new page. Go to File> New>Create. Now we created a new Web page. To apply the template to this page, you need go to Modify > Templates > Apply Template to Page. You need select the template. This should be the file name that we just created for the Template page. Now you can see this page has the same structure as the template. Other regions cannot be edited. The only region that is editable is the editable region you¡¦ve specified in the Template. You can type anything you want in this region. And you can save this page.

Once you made a template and applied to all the necessary pages, the last step you need to know is how to update a template. This is the magic of using Templates.
Any changes that you need to make in the basic structure of the site, you need to do in the Template. So go ahead and open your template Web page, then you can make any changes in this template page. For this page in this example, I want to add one more link on the navigation area. You can make any changes you want and then go to File > Save. If you have applied the Template to any of your site pages, you will get a window asking you if you want to 'Update Templates used in the following files'. You can click ¡§page1.htm¡¨ that you just created and click on Update, and close. To check if the new Web page that you created had applied the template, you can open File > page1.htm. Now you can see on the navigation area, the other link had been added.