Tables 23 rd February. What XHTML have we done so far? Hyperlinks & anchors - XHTML supports 3 types of lists:  Ordered – +  Unordered – +  Definition.

Slides:



Advertisements
Similar presentations
HTML TABLES EXPLAINED. What is a TABLE? The HTML table allows web designers to arrange & organize data -- text, images, hyperlinks, forms, form fields,
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
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.
Working with Web Tables
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris.
 2001 Prentice Hall, Inc. All rights reserved. Outline 1 Table1.html 1 2
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
16 HTML Tables and Frames Section 16.1 Create a basic table using HTML Define borders Merge cells Align content in tables Section 16.2 Create a frames-based.
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.
1 XHTML continued Use the anchor tag to link from page to pageUse the anchor tag to link from page to page Create absolute and relative linksCreate absolute.
Cascading Style Sheets 23 rd March. Cascading Style Sheets (CSS) CSS Syntax Linking CSS to XHTML Inheritance & Cascading Order Font Properties Text Properties.
Introducing Web Tables
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.
What is a TABLE? The HTML table allows web designers to arrange & organize data -- text, images, hyperlinks, forms, form fields, other tables, etc. Tables.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Identifies the Structure Table Row Column 1 Table Heading Column 2.
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.
1 Mastering the Internet and HTML Tables and Table Tags.
XHTML Tables. Tables create little boxes in which you can place things to keep them organized. The little boxes are called table cells. Tables are created.
INTRODUCTORY Tutorial 7 Creating Tables. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Discern the difference between data tables and.
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.
Images & Image Maps 16 th February. Images & Image Maps Web authors can add icons, logos and high impact images to their pages Images enhance web pages.
Forms. Forms Forms are used for e-commerce, online purchases, surveys, registrations, etc. Website using forms usually collect information and must use.
10/4/2015Tables1 Spring, 2008 Modified by Linda Kenney 4/2/08.
1 Web Developer Foundations: Using XHTML Chapter 3 XHTML Hyperlinks and Tables.
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 3 Key Concepts.
Jozef Goetz, © Pearson Education Copyright (c) 2006 Prentice-Hall. All rights reserved.
Chapter 9 Table Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Tutorial 5 Working with Tables and Columns
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
Tutorial 5 Working with Tables and Columns
IS1824: Introduction to Internet Multimedia Lecture 5: Layout in HTML Rob Gleasure
Html Tables Basic Table Markup. How Tables are Used For Data Display Tables were originally designed to display and organize tabular data (charts, statistics,
Frames 2 nd March. Write the code for this using tables and using layers …..
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
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.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
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.
CS-3432 Electronic Commerce Lecture – 7 Sikandar Shujah Toor
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.
Jozef Goetz, © Pearson Education Copyright (c) 2006 Prentice-Hall. All rights reserved.
Creating Tables in a Web Site HTML 4 Created by S. Cox.
Chapter 9 Table Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
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.
INTRODUCTION ABOUT DIV Most websites have put their content in multiple columns. Multiple columns are created by using or elements. The div element is.
Tutorial 5 Working with Web Tables
Working with Tables: Module A: Table Basics
Frames 8th March.
>> HTML: Tables.
Tutorial 5 Working with Tables and Columns
H T M L A B E S X P I N D.
Tutorial 5 Working with Web Tables
Tables:.
Lesson 8 Building Tables.
Introduction to XHTML Cont:.
H T M L A B E S X P I N D.
Lesson 5: HTML Tables.
H T M L A B E S X P I N D.
Presentation transcript:

Tables 23 rd February

What XHTML have we done so far? Hyperlinks & anchors - XHTML supports 3 types of lists:  Ordered – +  Unordered – +  Definition – + + Using images - Using image maps -,,

Tables Table structure and variables Table layout and design Using tables Table rendering and calculations Nesting tables Formatting via tables

Table Tables are commonly used on Web pages in two ways:  To organise information  To format the layout of an entire Web page

Tables A table is defined as a region that has rows and columns of small rectangles, called cells, that are arranged relative to each other in a certain way that makes up the table layout Web pages that use tables are harder to code

Tables Structure & Variables XHTML provide many variables that allow web authors to control table structure Table variables may be grouped into 2 categories:  Non-cell variables  Cell variables

Non Cell Variables Non cell variables control the properties and structure of the table, not the actual contents of the table:  caption is the title of the table  summary provides a longer description  border is the table’s outside border  header is the first row of the table  rows are the horizontal layout of the cells  columns are the vertical layout of the cells  width is a representation of the number of columns  height is a representation of the number of rows

Non Cell Variables Heading 1Heading 2Heading 3 Cell(1,1)Cell(1,2)Cell(1,3) Cell(2,1)Cell(2,2)Cell(2,3) Cell(3,1)Cell(3,2)Cell(3,3) Cell(4,1)Cell(4,2)Cell(4,3) Cell(5,3)Cell(5,2) Cell(7,1)Cell(7,2)Cell(7,3) Cell(6,3)Cell(6,2)Cell(6,1) Cell(5,1) Width Height Border Rows Columns

Cell Variables Cells are the basic units that make up the table Cell variables control the properties and structure of individual cells:  Row span  Column span  Padding  Spacing  Alignment

10 Cell Variable: colspan Birthday List James 11/08 Karen 4/17

11 Cell Variable: rowspan James 11/08

Cell Variables Cell spacing describes the amount of the horizontal and vertical spacing between cells Specifying cell padding is equivalent to specifying top, bottom, left and right margins for the cell Cell content can be aligned within each cell

13 Using Tables tag Contains the table Common attributes: border, width, align tag Contains a table row tag Contains a table cell tag Assigns a title to a table

14 Using Tables Name Birthday James 11/08 Karen 4/17 Sparky 11/28 4 rows

15 Name Birthday James 11/08 Karen 4/17 Sparky 11/28 Using the Element Using Tables

This is a Sample Table 1st Heading goes here Cell 1 Cell 2 2nd Heading goes here Cell 3 Cell 4 2nd Heading goes here Cell 5 Cell 6 This is a Sample Table 1st Heading goes here Cell 1 Cell 2 2nd Heading goes here Cell 3 Cell 4 2nd Heading goes here Cell 5 Cell 6

Using Tables Cell 1 Cell 3 Cell 5 Cell 2 Cell 4 Cell 5 1 st heading goes here 2 nd heading goes here 3 rd heading goes here This is a Sample Table

Table Rendering & Calculations Every table, cell and its content must be displayed properly in the browser The following rules are used by browsers to render and calculate the size of tables  Calculating table width and height ( + width, height)  Calculating the number of columns in a table  Calculating the size of a table cell  Calculating cell spacing and padding  Inheritance of alignment specification

Nesting Tables Table nesting is used to control formatting Code is quite complex A table is nested by having a table inside another table Tables can be nested by using a tag after Nesting tables may produce awkward results  Table cell sizes may vary greatly  Location of empty cells may not be acceptable to web authors

Using tables Cell 1 Nested Tables T11 T22 T33 Cell 3 Cell 4 Cell 5 Cell 6 Cell 7 Cell 8 Cell 9 Cell 10 Cell 11 Cell 12

Formatting a Web Page via Tables Formatting web pages using tables has the same idea as that of nesting tables A web page layout is divided into regions Then a table or a cell is substituted for each region Even formatting web pages using tables can involve the use of nested tables

Formatting a Web Page via Tables

23 Another Example … This is the banner area Place Navigation here Page content goes here

24 Additional Table Layouts Can you write the code for these 2 tables?

Accessibility and Tables Use elements to indicate column or row headings. Table element summary attribute  provide an overview of the table contents Table element title attribute  provide a brief description of the table. Associate tags with corresponding tags  tag id attribute  tag headers attribute

<table border="1" width="75%" title="Educational Background" summary="This table lists my educational background including school attended, years, subject, and degree awarded (column headings). "> School Attended Years Subject Degree Awarded Schaumburg High School College Prep H.S. Diploma What will this look like?

Conclusion Tables Tables  Tables organise and structure web pages  There are table-level and cell cell-level level variables  The purpose of using a table determines its layout and layout and design  There are 5 important tags to use tables  Table calculations and rendering is important because of the number of different parameters involved  Tables can be nested for better structure  Table are extensively used for formatting web pages

Reference Steven M. Schafer (2005), HTML, CSS, JavaScript, Perl, and PHP Programmer's Reference, Hungry Minds Inc,U.S. Dan Cederholm (2005), Bulletproof Web Design: Improving Flexibility and Protecting Against Worst-Case Scenarios with XHTML and CSS, New Riders. Ibrahim Zeid (2004), Mastering the Internet, XHTML, and Javascript