David Lash DePaul University SNL 262 Web Page Design Tables! - Chapt 15 Instructor: David A. Lash.

Slides:



Advertisements
Similar presentations
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.
Advertisements

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 JavaScript text Resume project HTML Project Three This week online Next class.
1 Using HTML tables What we talked about last time l l Named colors and specify Hexadecimal number »Browser Safe Colors, l l,, l » l Special character.
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.
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.
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.
1 Tables: Data in Rows and Columns – What is Table? – How Tables are Used? – Designing Tables – Table, Cell, Row Attributes – Using Tables for Alignment.
AdvWeb-1/37 DePaul University SNL 262 Web Page Design Tables! - Chapt 15 Instructor: David A. Lash.
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.
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.
Lesson 6. Links in HTML Computer Science Welcome to Virtual University in Pakistanhttp://
XP 1 Tutorial 4 Designing a Web Page with Tables.
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.
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.
HTML Comprehensive Concepts and Techniques Second Edition Project 3 Creating Tables in a Web Site.
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… HTML Lists, Tables and Forms v2.0.
HTML II ECT 270 Robin Burke. 2 Outline Review Images text flow links Image maps Colors Tables.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
Creating Tables in a Web Site
1 Web Developer Foundations: Using XHTML Chapter 3 XHTML Hyperlinks and Tables.
1 Web Developer & Design Foundations with XHTML Chapter 3 Key Concepts.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
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.
Using HTML tables.... Objectives... How to create tables Basic,, tags Some arguments with table Height, width, border Special “tricks” Cell text alignment.
HTML (Hypertext Markup Language) – Class 3 Recap: HTML Special Characters (ex: ©). Including Images – using the tag. Lists – Ordered and Unordered.
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.
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.
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.
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.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
Week 9: HTML Tables and Frames HNDIT11062 – Web Development.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
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.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
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.
TABLES IN HTML No, not that kind of table!! THIS KIND!!
1 R3 R1 R5 R4 R6 R2 B B A A Looking at the Code Under the View menu Select Source.
Working with Tables: Module A: Table Basics
>> HTML: Tables.
LAB Work 02 MBA 61062: E-Commerce
Introduction to HTML.
H T M L A B E S X P I N D.
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
COMS 161 Introduction to Computing
Site Development Foundations Lesson 6
Lesson 5: HTML Tables.
Presentation transcript:

David Lash DePaul University SNL 262 Web Page Design Tables! - Chapt 15 Instructor: David A. Lash

David Lash 2 What we talked about 2 weeks ago... zCreating Lists yOrdered Lists ( … &.. ) y Unordered Lists ( … &.. ) yDefinition lists ( …,.., … ) yLists within lists (remember to match up start and end of lists). zCreating HTML links yCreating absolute links x my home page yCreating relative links x my FAQ Page yCreating links x Mail me please

David Lash 3 What we talked about last week z zNamed colors and specify Hexadecimal number yBrowser Safe Colors, z z,, z y zSpecial character (e.g., $, need special numerical characters y&#162 to get the ¢ sign. y<META&gt to get y to get 2 blank spaces.

David Lash 4 What we will talk about this week… zHow to create tables yBasic,, tags zSome arguments with table yHeight, width, border zSpecial “tricks” yCell text alignment yPadding the columns and Rows ySpanning Columns and Rows ySpecial Examples zCreating page layouts

David Lash 5 HTML Tables zAn orderly arrangement of text and/or graphics into vertical columns and horizontal rows. Table with integrated graphics zWithin HTML tables perform many functions See example at: yControl web page layout (for text and graphics) ySeparate a Web page into different areas yShow data output in traditional table format Example of table as a page layout device

David Lash 6 HTML Tables zAn orderly arrangement of text and/or graphics into vertical columns and horizontal rows. Each these are called a “cell”

David Lash 7 The Basic Table Structure The bare minimum tags needed to describe a table are …, … Encloses TABLE Defn Start & End Table row Start & End Table Colmn

David Lash 8 The Basic Table Structure Simple Table Cell 1 Cell 2 Cell 3 Cell 4 Table Row Table Column Start & End Table Creates the example 4 cell table Click HereClick Here

David Lash 9 Guess The Table Format - 1? What would the following display? Cell 1 Cell 2 Cell 1 Cell 2 Cell 3 Click Here for answer

David Lash 10 Guess The Table Format - 2? What would the following display? Cell1 Cell2 Cell Cell 1 Cell 2 Cell 3 Click Here for answer

David Lash 11 Guess The Table Format - 3? What would the following display? Cell1 Cell2 Cell ? Cell 1 Cell 2 Cell 3 Click Here for answer Row 1 w/ 5 cols Col 3-4 empty Col 5 Row 2 Cols 1-3 only have data

David Lash 12 Introducing the Another basic but option TAG is the similar to Col 1 Col 2 Cell 1 Cell 2 Cell 1 Cell 2 Click Here for example Automatic Bold & center

David Lash 13 Another Example My First Table Description Size Weight Gun 5 Inch Barrel 20 Ounces T-Rex 40 Feet High Multiple Tons Hurricane Floyd 400 Miles Radius ???? (Sometime can get by w/o closing tags,, but this is risky business (e.g., I.E., VS Navigator.) Click Here for example

David Lash 14 Tables Are Their Own Environment My First Table Description Size Weight Gun 5 Inch Barrel 20 Ounces T-Rex 40 Feet High Multiple Tons Hurricane Floyd 400 Miles Radius ???? You’d think each element in the table would be bold Instead that bold is ignored w/I table

David Lash 15 Table Cells Format Like Documents... Test Cell1 Happy Days Are here again. The skies are are blue again Create a ol within this cell Format some text.

David Lash 16 What we will talk about this week… zHow to create tables yBasic,, tags zSome arguments with table yHeight, width, border zSpecial “tricks” yCell text alignment yPadding the columns and Rows ySpanning Columns and Rows ySpecial Examples zCreating page layouts

David Lash 17 Options: Table, Row and Column Width Some other attributes for the table tag zwidth=number, percentage - specifies the width (in pixels) of entire window or % of size of current element. (Can be set at table, row or cell level.) zheight=number, percentage - specifies the height (in pixels) of entire window or % of size of current window. (Can be set at table, row or cell level.)

David Lash 18 Specifying Column Size My First Table Description Size Weight Gun 5 Inch Barrel 20 Ounces T-REX 40 Feet High Multiple Tons Hurricane Floyd 400 Miles Radius ???? Click Here Set overall table size Sets individual element

David Lash 19 Options: Borders Some other attributes for the table tag zborder=# - 0 or no border is the default see below for more details.

David Lash 20 Implementing Borders My First Table Description Size Weight Gun 5 Inch Barrel 20 Ounces T-REX 40 Feet High Multiple Tons Hurricane Floyd 400 Miles Radius ???? Example Example at

David Lash 21 Options: Background Color zbgcolor="#rrggbb" or color name - sets a color for background for table or table cell.

David Lash 22 Tables and BGCOLOR z Can use BGCOLOR= attribute in the TABLE,TR or TD tag. Color MyTable The Local News TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT

David Lash 23 What we will talk about this week… zHow to create tables yBasic,, tags zSome arguments with table yHeight, width, border zSpecial “tricks” yCell text alignment yPadding the columns and Rows ySpanning Columns and Rows ySpecial Examples zCreating page layouts

David Lash 24 Some Special Table Tricks zCell text alignment zPadding the columns and Rows zSpanning Columns and Rows zSpecial Examples

David Lash 25 Options: Alignment Some other attributes for the table tag zalign=left|right|center – sets the horizontal alignment for a table, row, or cell. Can be used with, or tags. zvalign=top|bottom|middle – set the vertical alignment of the table, row or cell. Can be used with,, or tags.

David Lash 26 Options: Alignment My First Table Name Rank Serial Number George Washington General 1 George Bush President 42 George Ryan ??? ????? zhttp://condor.depaul.edu/~dlash/website/TableEx6.htmlhttp://condor.depaul.edu/~dlash/website/TableEx6.html

David Lash 27 Cell padding and cell spacing zCell padding specifies the number of pixels from the cell border to the text. Useful for simple announcement boxes. zCell spacing specifies number of pixels between cells of the table. Text Spacing Number of pixels betw cells Padding Number of pixels from cell border to text Text

David Lash 28 Cell Padding And Spacing zCell padding specifies the number of pixels from the cell border to the text. Useful for simple announcement boxes. Color MyTable The Local News Announcing Earlier Class Dismissal Today! 1 Row 1 Col (A Box!) Start text 52 pixels from border (next slide

David Lash 29 Would look like...

David Lash 30 Cell Padding And Spacing zCell spacing specifies number of pixels between cells of the table. Color MyTable The Local News DATA1 DATA2 DATA3 DATA4 z(next slide 50 pixels between table cells

David Lash 31 Would Look Like...

David Lash 32 Options: colspan and rowspan zcolspan - Allows a cell to span columns zrowspan - Allows a cell to span rows yUseful for performing a page layout

David Lash 33 Column & Row Spacing zColspan allows 1 cell to span more than 1 Columns of cells. This row has colspan=2 This row has colspan=3 This row has colspan=2

David Lash 34 Col Span Example zExample Colspan Color MyTable The Local News TEXT TEXT TEXT TEXT TEXT TEXT <TD BGCOLOR="ORANGE">TEXT zhttp:// 3 rows & Cols. The first row spans all cols!

David Lash 35 Col & Row Spacing zRowspan allows 1 cell to span more than 1 rows of cells. This col has rowspan=3 This col spans both cols rowspan=2 This col has rowspan=3

David Lash 36 RowSpan Example zJust like Col Span but with rows! Color MyTable The Local News TEXT TEXT TEXT TEXT TEXT TEXT TEXT 3 rows & Cols. The first col spans all rows!

David Lash 37 Creating Layouts zSuppose you want to make a page layout as follows: This Col has colspan 5 Title NavigationNavigation Main Page rowspan 4 Rowspan 4 Colspan 4 Your Logo

David Lash 38 Wouldn’t this solve the problem? Sample Table Title Nav1 Nav2 Nav3 Main Body u See how this would display 1 st col 15% of screen Span title Put Nav Items In BL Put Main Body in

David Lash 39 Would Output... Navigation not upper right hand corner Title and body not centered

David Lash 40 Lets Refine It... Sample Table Title Nav1 Nav2 Nav3 <TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0> Main Body u Next slide Center In cell Start New table Align in Center of cell Valign at Top Of cell

David Lash 41 Would Output...

David Lash 42 Some Special Table Uses zGoto This Web Page - Click HereClick Here

David Lash 43 What we talked about … zHow to create tables yBasic,, tags zSome arguments with table yHeight, width, border zSpecial “tricks” yCell text alignment yPadding the columns and Rows ySpanning Columns and Rows ySpecial Examples zCreating page layouts

David Lash 44 Review of homework zLook at homework file at yhttp://condor.depaul.edu/~dlash/website/Lab4.htmlhttp://condor.depaul.edu/~dlash/website/Lab4.html zAlso don’t forget to include a link to your lab on your home page