![]() ![]() |
![]() |
Table of Contents
![]() |
Chapter 5 - Creating Page TemplatesThe 3.2 release of HTML in 1997 included table elements for the purpose of organizing tabular data in rows and columns. Web designers quickly realized they could use the table elements to build print-like design structures that allowed them to break away from the left-alignment constraints of basic HTML. With tables, Web designers had the control and the tools to build columnar layouts, align text, add white space, and structure pages. This misuse of the table elements, although well-intentioned, has created problems with Web site accessibility and compatibility that are still influencing Web design today. Although proponents of standards-based Web design (described in Chapter 1) see tables returning to their intended purpose, they currently are still used as the primary design tool throughout the Web. Cascading Style Sheets (CSS) provides an alternate method of controlling page designs called positioned layouts (described in Chapter 10), which are now relatively well supported by the latest releases of the major browsers. CSS positioning offers a rich set of tools for creating complex page designs. The Web design community has been somewhat reluctant to embrace this new approach, because it fears that users with older browsers will not see the page designs as the designer intended. Current Web designers need to be fluent in both uses of tables-as they were originally intended, and also as a page layout tool. In this chapter you will learn how to use the table elements to create data tables, as well as investigate their use as a page layout tool. In Chapter 10, you will learn how to create table-less positioned layouts using CSS. When you complete this chapter, you will be able to:
Visualized Table DesignTables are easier to design if you start with a sketch of the visualized layout. ![]() Table ExamplesThese are the HTML files for the various figures in Chapter 5. You can view these in your browser and save the code to experiment with tables.
Figure 5-1: Tabular Data Exercise FileDownload the file template.htm to work on the "Creating a Page Template" project starting on page 141 (3rd Ed.). Download the file navbargifs.zip to work on the Seamless Navigation Bar Project #6, page 158 (4th Ed.). Individual Case ProjectDesign the page templates for the different information levels of your Web site. Create sketches for each template, and describe why the templates fit your content. You will find all of the page templates shown in this chapter linked above Use these templates as starting points for your Web pages. Adapt the page templates to your own needs or build your page templates from scratch.Test the page templates with content in different browsers to make sure that they are displayed properly. Once your templates test properly, start to build the files for your Web site by copying the templates to individual files and naming them to match your flowchart from Chapter 3. Team Case ProjectAssign page template design tasks to different team members, and design the page templates for the different information levels of your Web site. Each team member should create multiple designs for the type of page he or she is assigned. For example, one team member should be responsible for the home page designs, one for the section page designs, and one for the article level page designs. Create 2-3 sketches for each template, and meet as a team to determine which template designs are the best for your content. Be prepared to present and defend your page designs to your team members. You will find all of the page templates shown in this chapter on the Principles of Web Design Online Companion Web site. Use these templates as starting points for your Web pages. Adapt the page templates to your own needs or build your page templates from scratch. Test the page templates with content in different browsers to make sure that they are displayed properly. Once your templates test properly, start to build the files for your Web site by copying the templates to individual files and naming them to match your flowchart from Chapter 3.
|