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.

Slides:



Advertisements
Similar presentations
Using HTML Tables Presenting Information & Layout Control.
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.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
 2001 Prentice Hall, Inc. All rights reserved. Outline 1 Table1.html 1 2
New Perspectives on Creating Web Pages with HTML
Chapter 4 – Intermediate HTML 4 Outline 4.1 Unordered Lists 4.2 Nested and Ordered Lists 4.3 Basic HTML Tables 4.4 Intermediate HTML Tables and Formatting.
Tutorial 4: Designing a Web Page with Tables
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.
Introducing Web Tables
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.
Using HTML Tables.
Tables And Lists. Slide 2 Lecture Overview Learn about the basics of tables Create simple 2-dimensional tables Format tables Create tables with complex.
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.
1 XHTML Tables A table is a matrix of cells, for displaying content in rows and columns The cells can include almost any element Some cells display row.
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.
Tables in HTML Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
Identifies the Structure Table Row Column 1 Table Heading Column 2.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 5: Working with Tables.
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.
INTRODUCTORY Tutorial 7 Creating Tables. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Discern the difference between data tables and.
Internet Skills An Introduction to HTML Alan Noble Room 504 Tel: (44562 internal)
Tables Learning Web Design: Chapter 8. Overview of Tables Uses for tables How to create a table Using CSS to style a table Nested tables Advanced table.
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.
>> Introduction to HTML: Tables. HTML is used to give websites structure 5 Basic Tags Element = Start-Tag+Content+End-Tag Heading Tags [h1-h6] Paragraph.
10/4/2015Tables1 Spring, 2008 Modified by Linda Kenney 4/2/08.
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:
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
HTML B OOT C AMP Chapter 10 Tables Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved.
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.
Jozef Goetz, © Pearson Education Copyright (c) 2006 Prentice-Hall. All rights reserved.
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
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.
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
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.
ECA 228 Internet/Intranet Design I Tables. ECA 228 Internet/Intranet Design I Basic HTML Tables Created as a way to present rows and clumns of data.
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.
Tables in HTML. Table Tag HTML tables always begin and end with a table tag. Syntax:
Lesson 7. Tables Table Tags and Attributes Tables HTML tables are used in two main ways: 1.To organize tabular data in a familiar spreadsheet-like way.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
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.
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.
Jozef Goetz, © Pearson Education Copyright (c) 2006 Prentice-Hall. All rights reserved.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
Working with Tables: Module A: Table Basics
>> HTML: Tables.
LAB Work 02 MBA 61062: E-Commerce
HTML Tables.
Introduction to HTML.
H T M L A B E S X P I N D.
New Perspectives on Creating Web Pages with HTML
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
Web Development & Design Foundations with H T M L 5
H T M L A B E S X P I N D.
Site Development Foundations Lesson 6
Lesson 5: HTML Tables.
H T M L A B E S X P I N D.
Presentation transcript:

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. Valqui Essentials for Design XHTML

Copyright (c) 2004 Prentice-Hall. All rights reserved. 2 Parts of a Table  Table – tabular, grid-like layout of Web content  Rows – horizontal groupings in a table  Columns – vertical groupings in a table  Cells – individual units of a table

Copyright (c) 2004 Prentice-Hall. All rights reserved. 3 Visual Summary A typical table Rows Columns Cells

Copyright (c) 2004 Prentice-Hall. All rights reserved. 4 Tags for Table Creation   Beginning and end of the table  (table row)  Beginning and end of a row in the table  Several can be nested inside the  (table definition)  Beginning and end of a cell (column) in the table row  Several can be nested inside the   Special type of cell that contains headers  Text inside cell is bold and centered

Copyright (c) 2004 Prentice-Hall. All rights reserved. 5 Two Common Attributes  border  Pixel width of the lines surrounding cells  Default is 0 (no border)  width  Indicate how much of page width is taken by table  By default, each column is wide enough to handle the largest text in one of its cells

Copyright (c) 2004 Prentice-Hall. All rights reserved. 6 Effects of,, and Tags Tables By default, no border and narrow columns

Copyright (c) 2004 Prentice-Hall. All rights reserved. 7 Effects of border and width attributes Lines surround cells Table width takes up ¾ of page width

Copyright (c) 2004 Prentice-Hall. All rights reserved. 8 Effects of border and width attributes First Column... Second... And Third Header cells have bold and centered text

Copyright (c) 2004 Prentice-Hall. All rights reserved. 9 The Tag's colspan and rowspan attributes  colspan  Specify number of columns to span  The cell will then take up that many columns in the table  Syntax:  text  rowspan  Specify number of rows to span  The cell will then take up that many rows in the table  Syntax:  text

Copyright (c) 2004 Prentice-Hall. All rights reserved. 10 Effects of Column and Row Spanning Column spanning: Today’s Objectives Note the space below "Today's Objectives", caused by making it a header (h3) Row spanning: Notes:

Copyright (c) 2004 Prentice-Hall. All rights reserved. 11 Applications of height and width attributes  Table width and height  Absolute pixel sizes:  Relative percentages:  Row height  Absolute pixel sizes:  Relative percentages:  Column width and height  Absolute pixel sizes:  Relative percentage of row:

Copyright (c) 2004 Prentice-Hall. All rights reserved. 12 How Width and Height Decisions are made  Widest cell width setting determines column width  Largest cell (or row) height setting determines entire row height  Percentages in table settings are based on page size  Percentages in cell and row settings are based on table size  If content is larger than size settings, element is made just large enough to satisfy content's needs

Copyright (c) 2004 Prentice-Hall. All rights reserved. 13 Effect of Changing Table Size changed to

Copyright (c) 2004 Prentice-Hall. All rights reserved. 14 Effect of Changing Cell Size First Column... changed to First Column...

Copyright (c) 2004 Prentice-Hall. All rights reserved. 15 Table and Table Data Alignment  tag's align Attribute  Controls horizontal alignment of table in the page  Options: left (default), right, center  tag's align attribute  Controls horizontal alignment of content in the cell  Options: left (default), right, center  tag's valign attribute  Controls vertical alignment of content in the cell  Options: top, bottom, center (default)

Copyright (c) 2004 Prentice-Hall. All rights reserved. 16 Effect of Table Alignment changed to

Copyright (c) 2004 Prentice-Hall. All rights reserved. 17 Effect of Cell Data Alignment Notes: changed to Notes:

Copyright (c) 2004 Prentice-Hall. All rights reserved. 18 Sections of a Table  Header  Appears at top of each printed page of a multi-page table   Footer  Appears at bottom of each printed page of a multi-page table   Body  Contains main content of the table   Headers and footers are not supported in all browsers

Copyright (c) 2004 Prentice-Hall. All rights reserved. 19 Effects of Headers and Footers Title of the Table The footer appears at the bottom

Copyright (c) 2004 Prentice-Hall. All rights reserved. 20 Planning a Table Design  Table design can be complex  Best to sketch table on paper before coding  Helps for:  Page layout  Structuring data

Copyright (c) 2004 Prentice-Hall. All rights reserved. 21 Borders and Colors  Concepts  Manipulating a table's border color  Manipulating a table's background colors

Copyright (c) 2004 Prentice-Hall. All rights reserved. 22 Attributes for Color Control  Border color control  bordercolor – sets the overall border color  bordercolorlight – sets color of the light portion of the border (Internet Explorer only)  bordercolordark – sets color of the dark portion of the border (Internet Explorer only)  Background color control  Bgcolor – sets the color of the fill area

Copyright (c) 2004 Prentice-Hall. All rights reserved. 23 About Attributes for Color Control  These can be applied to table, row, or cell  Local settings override global settings  Color control attributes are deprecated  XHTML 2.0 will not include them  Use CSS instead

Copyright (c) 2004 Prentice-Hall. All rights reserved. 24 Effects of Border Color Control

Copyright (c) 2004 Prentice-Hall. All rights reserved. 25 Effects of Background Color Control Global settings: Local settings:

Copyright (c) 2004 Prentice-Hall. All rights reserved. 26 Using Cellspacing and Cellpadding  Cellspacing – the gap between the cells in a table  Implemented with cellspacing attribute  Cellpadding – space between the content of a cell and its borders  Implemented with cellpadding attribute

Copyright (c) 2004 Prentice-Hall. All rights reserved. 27 Effect of Cellpadding and Spacing Gap between content and cell borders: Gap between different cells borders:

Copyright (c) 2004 Prentice-Hall. All rights reserved. 28 Spacer Images  Transparent images to expand cells a specific size  Not seen by the view  Often thin in width and long in height

Copyright (c) 2004 Prentice-Hall. All rights reserved. 29 Table Nesting and Mortised Pages  Nested table – one table inside another  Simple nesting can be hand coded  Mortised Web page design  Elaborately planned nested table structure  Use many tables to piece together images and other elements  Usually done in a Web editor, not hand coded

Copyright (c) 2004 Prentice-Hall. All rights reserved. 30 Effects of Table Nesting A table is nested inside the Notes cell Notes: