Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.

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

Using HTML Tables Presenting Information & Layout Control.
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.
Web Page Design Using Tables Here you see three examples of how tables can be used to organize your content. We call this page layout or design. You can.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
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
CIS101 Introduction to Computing Week 07. Agenda Your questions Resume project Review Project Two HTML Project Three This week online Next class.
© 2004, Robert K. Moniot Chapters 4 & 5 Introduction to HTML, More Details.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Introducing Web Tables
Using HTML Tables.
Exploring the Internet Creating web pages with 2-d layout Instructor: Michael Krolak Instructor: Patrick Krolak See also
1 Tables: Data in Rows and Columns – What is Table? – How Tables are Used? – Designing Tables – Table, Cell, Row Attributes – Using Tables for Alignment.
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.
Images and Tables. Displaying Image Attributes: SRC= " mypic.gif " – Name of the picture file SRC= " pic/mygif.jpg " – Name of file found in pic directory.
What is a TABLE? The HTML table allows web designers to arrange & organize data -- text, images, hyperlinks, forms, form fields, other tables, etc. Tables.
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.
XP 1 Tutorial 4 Designing a Web Page with Tables.
XHTML1 Tables N100 Creating a Simple Web Page. XHTML2 Creating Basic Tables Tables are collections of rows and columns that you use to organize and display.
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.
HTML Comprehensive Concepts and Techniques Second Edition Project 3 Creating Tables in a Web Site.
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)
Actual Building the Pages Tables. Using Table Elements  To build effective page templates, you must be familiar with the HTML table elements and attributes.
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.
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
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.
Tables lab5. Drawing a table Tables are the web designer’s best friend and worst enemy. To draw a table we will use:  tag  for raw  tags for column.
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.
Chapter 5 Creating Page Templates. Principles of Web Design 2nd Ed. Chapter 5 2 Principles of Web Design Chapter 5 Objectives Understand table basics.
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.
Creating Tables in a Web Site HTML 4 Created by S. Cox.
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.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 5.
CIS101 Introduction to Computing Week 07 Spring 2004.
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
Working with Tables: Module A: Table Basics
>> HTML: Tables.
LAB Work 02 MBA 61062: E-Commerce
HTML Tables.
Chapter 5 Introduction to XHTML: Part 2
Introduction to HTML.
H T M L A B E S X P I N D.
Табеле Табеле се представљају елементом TABLE.
HTML/XML HTML Authoring.
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
COMS 161 Introduction to Computing
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:

Lecture: Tables

Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within a forces columns

More Table Tags Table header conceptually identical to data cells except in bold and have a default ALIGN=center.

More Table Tags inside TABLE tag but not table rows or cells. ALIGN defaults to top but can be set to bottom horizontally centered with respect to the table, may have lines broken to fit within the width of the table.

A Simple Table Example Code Posted Separately

Table Attributes: 1. Borders within the tag Borders are expressed in pixels The default is no border but space around table

2. ALIGN Within TABLE: ALIGN LEFT or RIGHT makes flow around the table (the way it did with images); defaults left,text above and below, NOT flowing

More On ALIGN Used with CAPTION : whether the caption appears above or below the table -top or bottom defaults to top Used with TR, TH, or TD: how text inside the table is aligned- left, center, and right

3. VALIGN controls where text within table cell(s) is aligned used with TR, TD, or TH main options top, middle, bottom

4. COLSPAN and ROWSPAN Set column/ row width by the factor specified COLSPAN=3 cell is 3 columns wide ROWSPAN=2 cell is 2 rows deep

More COLSPAN and ROWSPAN Defaults are 1 and 1 If something greater than 1 is specified COLSPAN goes right ROWSPAN goes down (more on this later)

5. WIDTH and HEIGHT Browsers automatically format table cells to fit content of largest entry Use WIDTH and HEIGHT to override (in percentages or pixels)

6. CELLPADDING and SPACING CELLPADDING- within cells (in pixels- defaults to 1) CELLSPACING- between cells (in pixels, defaults to 2)

7. BACKGROUND BACKGROUND=“url” tiles automatically

Borderless Tables as Page Organizers Set Width at 100% All page contents are within TD tags common for newpaper/magazine layout also for “Navigation bars” (Columns, usually on left, containing links)

Reprise: COLSPAN and ROWSPAN Used for complex borderless tables Set to the number of columns or rows COLSPAN goes to the right ROWSPAN goes down

What you Do Diagram your Layout Count the rows and columns Create a table with that many rows and columns Use COLSPAN and ROWSPAN to reproduce your configuration

Count The Rows and Columns

Span them in Stages

For At-Home Practice

More Practice: Count the Steps

How to fit tables on user’s screen OK if the the user has to scroll down to see all the table, but not to scroll sideways. Fitting on the screen depends on monitor Most common: 640 X % 800 X % 1024 X %

So… commercial web sites make their page content around 600 pixels wide using fixed width tabular structure

Some Commercial Art Galleries Waddington Galleries, London Vose Galleries, Philadelphia Odon Wagner Gallery, Toronto Gallery of West Indian Art, Montego Bay and internet