Web Design
Mobile Internet
Brand Design
Innovative
News
Encyclopedias

What is a web template

Date:2016-07-21 Source: Shangpin China Type: website encyclopedia
Word Size: small   medium   big

Template is an improvement Website production An effective tool for efficiency. In web design, the same website often encounters dozens of pages with the same style. If you use XHTML to design the structure of the web page every time, and use Css to define the style of the web page object, the efficiency will be very low. With the template function of Dreamweaver, you can quickly generate a large number of similar web pages in a few simple steps, which can effectively save the time of making web pages.

Templates are the basic documents for generating web pages. When creating a web page, the content will be updated frequently. However, some elements of the page need to be kept for a long time. At this time, you can make a template of the page elements that remain unchanged for a long time, and only modify a small amount of content when necessary.

Documents generated using templates can still be modified. When changing the template, you can update all the web documents created with the template at the same time. In templates and web documents with templates applied, different sections can be distinguished by editable areas and non editable areas. These areas will be displayed with different color brightness. You can change the display color of these areas by setting Dreamweaver preferences. The template has three advantages.

Consistent style

Using templates to create pages in the process of website creation can generate a large number of pages with the same style, making the whole website look more systematic, and avoiding a lot of repetitive work.

Easy to modify

The website composed of pages created by the template is very convenient for modification. For example, if you need to modify the style of the entire website, you can quickly change the style of the entire website by simply modifying the template of the website.

Easy backup

If you need to back up the site style for a site that does not use a template, you need to copy all the pages in the entire site. With templates, you only need to back up website templates when backing up website styles.

How do I create a template?

In Dreamweaver, users can create new templates, add content to the templates as needed, save them, or obtain templates in other ways. By default, template documents are usually stored in the Templates directory under the root directory of the local site, with the extension dwt.

There are two main methods to create templates, namely, creating a new template file and modifying other web page documents into templates. After creating a template file, you need to insert various areas in the template to make the template work.

1. Create a blank template

You can create blank template files in Dreamweaver. Open Dreamweaver and execute the File I New command (or press Ctrl+N) to open the New Document dialog box. Select the Empty Template option in the dialog box to select the technology and layout type used by the template on the right, as shown in Figure 5-8.
 New Template
Select the template type to be created and click Create to create a blank template and add content to the template.

2. Conversion template

Dreamweaver also supports saving existing designed web pages in template format. In Dreamweaver, first open the designed webpage document, as shown in Figure 5-9.
 Open the designed webpage
Delete some content that needs to be updated frequently in the opened webpage, and execute the command [File] | [Save as Template] to save the webpage as a dwt template.


Please contact our consultant

+86 10-60259772

Please provide your contact number. The project manager of shangpin China will contact you as soon as possible.