Web Design - Web Authoring / Intermediate HTML: Tables and Templates

Sections:  Introduction  |  Section 1  |  Section 2  |  Section 3
Section Three:  Part A  |  Part B  |  Part C  |  Part D  |  Part E  |  Part F

What is a Template Page?

A template, in regard to computing, is "a preset format for a document or file, used so that the format does not have to be recreated each time it is used" ("Template Definition", n.d., Def. 1-Computing); essentially a digital cookie cutter.

Common HTML Templates

Web Designers may create several template pages. For instance, most web designers will  create a basic HTML template that includes the ten terrific tags and a comments section. This basic page can be used to create any future HTML document in a more efficient manner as the web designer does not need to spend time adding the basic elements of a properly formatted web page, rather they are already added to the template document. The web designer can update important aspects of the page; to include the <title> of the document and the comments section, save the document as a new HTML file, and begin designing and developing the <body> of the page.

Additionally, web designers will also create a design template page that incorporates all of the elements of the basic HTML template as well as aspects essential to a web site's design (i.e. layout, color, navigation, and typography).

Comments and What They Are Used For

Comments are a programming tool found in almost every programming or scripting language. Comments serve two basic functions:

  1. Provide clarifying information about the elements included in the source code.
  2. Hide source code elements; these elements are neither displayed, or executed, when a page is rendered or a program is run.

To create a comment in HTML, the comment tags are used (tag syntax is shown below). Anything listed between the opening and closing comment tag is not displayed in the web browser. HTML comments can be classified as single or multiline comments.

Let's See it in Action icon. Let's See it in Action: Comments

graphical example of single and multiline comments

Notice that the text and image listed between the single and multiline comments tags, highlighted in the HTML code, are not visible in the browser window.


Reference:
Template definition. (n.d.). Retrieved from https://www.google.com/?gws_rd=ssl#q=template+ definition.

Next Next

© 2008 KCDL. All rights reserved.