Chapter 5 Creating Page Templates

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to HTML Chapter Six Tables.
Advertisements

Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
Chapter 3 – Web Design Tables & Page Layout
ECA 228 Internet/Intranet Design I
Designing Web Pages Tables part one. Using Tables for Page Layout 2.
Tutorial 5 Working with Web Tables
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Creating Tables in a Web Site
Creating Tables Text Tables -created by using preformatted tags. Graphical Tables - created using Table Structure with HTML.
New Perspectives on Creating Web Pages with HTML
Tutorial 4: Designing a Web Page with Tables
CIS101 Introduction to Computing Week 07. Agenda Your questions Resume project Review Project Two HTML Project Three This week online Next class.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
XP 1 New Perspectives on Creating Web Pages with HTML Tutorial 4: Designing a Web Page with Tables.
XP 1 Designing a Web Page with Tables Tutorial 4 Creating a News Page.
Creating a Web Page with Tables. Objectives Create a text table with preformatted text Create the basic structure of a graphical table Organize table.
XP Creating Web Pages with HTML Using Tables. XP Objectives Create a text table Create a table using the,, and tags Create table headers and captions.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Using HTML Tables.
The Power of Tables They aren't just for sitting stuff on anymore...
HTML. Creating a Table Attributes: border: indicates the border type of the table Value: 0 (no border), 1, 2, etc. cols: indicates the number of columns.
Notes Ch. 12—Creating Tables Web Page Design. Why Use Tables? Tables are used to create a variety of items such as calendars, charts, and spreadsheets.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
HTML Essentials Tables and Table Tags. Overview Use of Tables goes beyond tabulating data Frequently used to format Web pages / control layout Especially.
Chapter 5 Working with Tables. Agenda Add a Table Assign a Table Border Adjust Cell Padding and Spacing Adjust Cell Width and Height Add Column Labels.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
CHAPTER 11 Tables. How Are Tables Used Data Display  Very tidy and very useful Better Text Alignment  Putting text in tables allows you to format indents.
HTML Comprehensive Concepts and Techniques Second Edition Project 3 Creating Tables in a Web Site.
Tutorial 5 Working with Web Tables. XP Objectives Explore the structure of a Web table Create headings and cells in a table Create cells that span multiple.
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
XP Using Frames in a Web Site Ali Alfayly. XP Tutorial Objectives Create frames for a Web site Control the appearance and placement of frames Control.
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
Actual Building the Pages Tables. Using Table Elements  To build effective page templates, you must be familiar with the HTML table elements and attributes.
10/4/2015Tables1 Spring, 2008 Modified by Linda Kenney 4/2/08.
Adobe Dreamweaver CS3 Revealed CHAPTER FIVE: USING HTML TABLES TO LAY OUT A PAGE.
CNIT 132 – Week 7 HTML - Tables. Tables on the World Wide Web A table can be displayed on a Web page either in a text or graphical format. A text table:
Creating Tables in a Web Site
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
Tutorial 5 Working with Tables and Columns
Tutorial 5 Working with Tables and Columns
XP Creating Web Pages with HTML, 3e Prepared by: C. Hueckstaedt, Tutorial 4 1 New Perspectives on Creating Web Pages with HTML Tutorial 4: Designing a.
Week 11 Creating Framed Layouts Objectives Understand the benefits and drawbacks of frames Understand and use frame syntax Customize frame characteristics.
Chapter 8 HTML Frames. 2 Principles of Web Design Chapter 8 Objectives Understand the benefits and drawbacks of frames Understand and use frames syntax.
HTML: Tables & Frames Internet Technology.
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
Week 5 Working with Tables. 2 Understanding Table Basics.
TABLES 1. In this chapter you will learn that tables have many uses in HTML. Objectives: Upon completing this section, you should be able to: 1. Insert.
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 5: Working with Tables Kelly L.
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
Unit 4 Create and Use Tables. TITLE CORNELL NOTES TOPIC: NOTES: Name: Date: 09/08/2009 Period : Summary: Reasons for using tables Unit 4 Page 1 Display.
Chapter 5 Creating Page Templates. Principles of Web Design 2nd Ed. Chapter 5 2 Principles of Web Design Chapter 5 Objectives Understand table basics.
Chapter 5 Working with Tables Principles of Web Design, 4 th Edition.
Using Tables for Layout INP150 Session #8. Layout Map out your page Design with paper and pencil Determine number of rows and columns you need Determine.
LINKING WEBPAGES USING HTML HYPERLINKS. Hyperlinks are text strings or images on a webpage which when clicked on, links to another section in the same.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
Tables creating a table within a web page. What makes up a table? Columns Rows.
Advanced Tables. Let's build some tables using each of these features and then try combining both features into the same table. Spanning Rows and Columns.
TABLES. Session Checklist ► Learn the ways that tables can help you organize data on your Web site ► Learn how to prepare a spreadsheet-like table that.
Tutorial 5 Working with Web Tables. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Learn and Apply the structure of.
CIS101 Introduction to Computing Week 07 Spring 2004.
CNIT 131 HTML5 - Tables.
Positioning Objects with CSS and Tables
Tables and Frames.
LAB Work 02 MBA 61062: E-Commerce
Tutorial 5 Working with Tables and Columns
Using HTML Tables SWBAT: - create tables using HTML
Site Development Foundations Lesson 6
Lesson 5: HTML Tables.
Positioning Objects with CSS and Tables
Presentation transcript:

Chapter 5 Creating Page Templates

Principles of Web Design Chapter 5 Objectives Understand how tables can enhance the display of your content Use HTML table elements and attributes to customize page templates Learn how to take a page design from concept to HTML code Recognize and use basic page templates

Principles of Web Design Chapter 5 Using Table Elements To build effective page templates, you must be familiar with the HTML table elements and attributes. The <TABLE> element contains the table information, which consists of table row elements <TR>, and individual table data cells <TD>. These are the three elements you will use most frequently when you are building tables.

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5 A Basic Table Figure 5-2 shows a basic table that uses these three table elements.

Basic Table Code <TABLE BORDER> Principles of Web Design Chapter 5 Basic Table Code <TABLE BORDER> <TR><TD>Stock Number</TD><TD>Description</TD><TD>List Price</TD></TR> <TR><TD>3476-AB</TD><TD>76mm Socket</TD><TD>45.00</TD></TR> <TR><TD>3478-AB</TD><TD>78mm Socket</TD><TD>47.50</TD></TR> <TR><TD>3480-AB</TD><TD>80mm Socket</TD><TD>50.00</TD></TR> </TABLE>

Principles of Web Design Chapter 5

Captions and Table Header Principles of Web Design Chapter 5 Captions and Table Header <CAPTION> lets you add a caption to the top or bottom of the table. By default, captions display at the top of the table. You can use the ALIGN=BOTTOM attribute to align the caption at the bottom of the table. The <TH> tag lets you create a table header cell that presents the cell content as bold and centered.

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5 Spanning Columns Table attributes let you further define a number of table characteristics. You can apply attributes at three levels of table structure: global, row-level, or cell-level.

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5 Spanning Columns The COLSPAN attribute lets you create cells that span multiple columns of a table. Column spans cells always span to the right.

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5 Spanning Rows The ROWSPAN attribute lets you create cells that span multiple rows of a table. Row spans always span down.

Principles of Web Design Chapter 5

Relative or Absolute Widths Principles of Web Design Chapter 5 Relative or Absolute Widths Set relative table widths as percentages in the table WIDTH attribute. If you choose relative table widths, your tables will resize based on the size of the browser window. Set absolute table widths as pixel values in the table WIDTH attribute. Fixed tables remain constant regardless of the browser window size.

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5

Calculating Table Widths Principles of Web Design Chapter 5 Calculating Table Widths The most common width for page template tables is between 580 and 600 pixels. This width supports the current lowest common denominator: 640 x 480 screen resolution. Internet Explorer displays tables slightly wider than Netscape, so you will find that 590 is an optimal fixed table width.

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5 Default Table Spacing Default spacing values are included in the table even when you don’t specify values for the table’s border, cell-padding, or cell-spacing attributes. Depending on the browser, approximately two pixels are reserved for each of these values. You can remove the default spacing by explicitly stating a zero value for each attribute.

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5 Table Pointers Write easy-to-read code - You can simplify your table creation and maintenance tasks by writing clean, commented code Remove extra spaces - Always remove any leading or trailing spaces in your table cell content Center tables - Centering a fixed table makes the table independent of resolution changes, because the table is always centered in the browser window

Principles of Web Design Chapter 5 Table Pointers Stack tables - Because of the way browsers display tables, it’s best to build several smaller tables rather than one large one Nest tables - You can nest tables by placing an entire table within a table cell

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5

Creating a Page Template Principles of Web Design Chapter 5 Creating a Page Template In this example you’ll see how to take a design sketch for a Web page and build a template for the page layout. Figure 5-15 shows a sketch of the desired layout. This layout is designed for a base screen resolution of 640 x 480, so the table will be fixed at a width of 590 pixels.

Creating a Page Template Principles of Web Design Chapter 5 Creating a Page Template Notice that the basic structure of the table is 3 rows by 4 columns. Each column uses 25% of the total width of the template. Row spans and column spans break across the layout to provide visual interest.

Principles of Web Design Chapter 5

Build the Basic Structure Principles of Web Design Chapter 5 Build the Basic Structure Start by building the basic table structure, including all the cells and rows of the table. As you customize the table you can remove extraneous cells as necessary. The basic structure is a 3-row by 4-column table.

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5 Setting a Fixed Width One of the design characteristics of the template is a fixed width that is not dependent on the user’s browser size or screen resolution. To accomplish this, use a pixel value in the global WIDTH attribute. Figure 5-17 shows the result of setting the width to 590 pixels.

Principles of Web Design Chapter 5

Creating the Page Banner Principles of Web Design Chapter 5 Creating the Page Banner The page banner cell is R1C1. This cell spans the four columns of the table using the COLSPAN attribute.

Principles of Web Design Chapter 5

Creating the Feature Cell Principles of Web Design Chapter 5 Creating the Feature Cell The Feature cell in the layout is R2C2, and spans two columns. This column span requires the removal of one cell in row two to make room for the span.

Principles of Web Design Chapter 5

Creating the Link Columns Principles of Web Design Chapter 5 Creating the Link Columns The New Link and Linked Ads columns in the layout reside in cells R2C1 and R2C3 respectively. These cells span rows 2 and 3 of the table. The row spans require the removal of cells R3C1 and R3C4.

Principles of Web Design Chapter 5

Creating the Page Banner Principles of Web Design Chapter 5 Creating the Page Banner Column widths must be set in only one cell per column. It’s also best to set the column widths in only one row of the table. In the example template, no rows contain a cell in each column of the table. The best way to set the widths for the columns is to add a fourth row to the table. This row acts as a width “control row.” These cells contain the WIDTH attributes and no content.

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5 Testing the Template To verify that your template works properly, populate it with test content Test the template in multiple browsers

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5 Template Examples The following templates cover a variety of page layout needs You may choose to stack different templates on top of each other for more complex layouts

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5

Principles of Web Design Chapter 5

Summary Plan your tables by sketching them out first. Principles of Web Design Chapter 5 Summary Plan your tables by sketching them out first. Use fixed table widths if you want to determine the size of your page rather than letting the browser determine the width. Use relative widths if you want to build tables that resize with the browser window, wrapping your content to fit.

Principles of Web Design Chapter 5 Summary Work on your pages with the table borders turned on, which displays the cell boundaries. When you are finished with your layout you can turn the borders off. Size your tables based on the page size you want to create. Use 640 x 480 as your base screen resolution. In most cases you’ll set the width but not the height of your tables, allowing the content to flow down the page.

Principles of Web Design Chapter 5 Summary Test your work! Table settings, especially cell widths and heights, can vary based on the user’s browser.