Creating a website template
Note: This section is not about
using the Template feature of Dreamweaver.
Using a template is a way of saving yourself a lot of time and
trouble whenever you want to add a new page to your site. It involves
first creating a page that has everything that you want to appear
on each page of your site, and then using this page as a basis for
any new pages you create. This template page might include:
- Navigation (links to other pages).
- The name, graphic, or logo from your site.
- A link to your email address.
- Copyright information.
- A background image you are using on each page.
- A table that you are using to center content.
It might also include Library objects such as:
- The header or main banner of your site.
- Navigation links.
- The email address.
- The copyright statement.
- Logos.
- Any JavaScript code you want on each page,
such as script to break out of frames or change the color of the
scrollbars.
- Meta tag keywords and descriptions of your
site.
- The page title.
For an example of what such a template looks like, go to http://www.otlhelp.com/sitepretemplate.htm.
This is the template I use to add any new pages to my website.
To create a new page using a template, do the following:
1. In Dreamweaver, open the page that you're using as a template
(I call mine anewpage.html).
2. Go to File.
3. Choose Save As.
4. Give the page a meaningful title. For example, if your new page
will be about pictures of your ski trip to Whistler, name it whistler.html.
5. Now you are ready to start inserting pictures or text on this
page without having to set it up from the beginning.
|