COS 125 DAY 14. Agenda  Assignment 6 DUE  Assignment 7 Posted Due March 9:35 AM  Quiz 2 will be on March 30 Chapters 7 - 15 20 M/C and 4 Short.

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

Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything Text Lists Other tables Pictures …
Creating Tables Text Tables -created by using preformatted tags. Graphical Tables - created using Table Structure 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
COS 125 Day 25. Agenda  Assignment #7 Due  Final capstone progress report due next class  Assignment #8 Posted Due April 25 One more to go  Exam #5.
Cos 125 Day 22. Agenda Assignment 6 Not corrected Waiting for tune-ins Assignment 7 is posted Assignment 7 Due April 2PM Left to do 1 Assignments.
© 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.
XP 1 Designing a Web Page with Tables Tutorial 4 Creating a News Page.
Cos 125 Day 24. Agenda All students meeting 7 Pm Monday, April 19 UMS Strategic Plan Assignment #7 Posted Due April 20 Two (one?) more to go Quiz Four.
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.
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.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
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.
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.
Tutorial #8 – Creating Data Tables. Tutorial #6 Review – Layouts Two Column Fixed Width, Three Column Fixed Width Class VS. ID Container Universal Selector.
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.
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.
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.
Updated on: September 4, 2010 CIS67 Foundations for Creating Web Pages Professor Al Fichera.
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.
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.
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.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
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:
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
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.
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.
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.
 2003 Prentice Hall, Inc. All rights reserved. Introduction to HTML: Tables Outline 1 Introduction 2 Basic HTML Tables 3 Intermediate HTML Tables and.
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.
HTML Tables The HTML table model allows authors to arrange data - text, preformatted text, images, links, forms, form fields, other tables, etc. - into.
COS 125 DAY 15. Agenda  Assignment 6 Not corrected yet  Web Server login issues  Assignment 7 Posted Due March 9:35 AM  Quiz 2 will be on March.
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.
Tables creating a table within a web page. What makes up a table? Columns Rows.
Tutorial 5 Working with Web Tables. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Learn and Apply the structure of.
Designing a Web Page with Tables
Organizing Content with Lists and Tables
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
Working with Tables: Module A: Table Basics
LAB Work 02 MBA 61062: E-Commerce
HTML Tables.
Programming the Web using XHTML and JavaScript
Chapter 5 Introduction to XHTML: Part 2
The Internet 10/25/11 XHTML Tables
Табеле Табеле се представљају елементом TABLE.
Using HTML Tables SWBAT: - create tables using HTML
For the World Wide Web Styling Tables with CSS
Principles of Web Design 5th Edition
Lesson 5: HTML Tables.
Presentation transcript:

COS 125 DAY 14

Agenda  Assignment 6 DUE  Assignment 7 Posted Due March 9:35 AM  Quiz 2 will be on March 30 Chapters M/C and 4 Short essays  New course time line  Lecture/Discuss tables (with CSS)

New time line  March 23  Assignment 6 due  Tables part 1 26  Tables part 2 30  Assignment 7 due  Quiz 2  April 2  Forms part1  Progress report 6  Forms part 2 9  Assignment 8 due  Multimedia 13  Scripts Part 1 16  Assignment 9 due  Scripts part 2 20  PodCasting  Progress report 23  Assignment 10 due  Quiz 3 27  Capstones Presentations Due

Alternate nested List styling  Create nested list  Use classes Create class for each list type .roman li {list-style-type:upper-roman;} Assign classes to Introduction Boy's childhood Girl's childhood.roman li {list-style-type:upper-roman;}.ualpha li {list-style-type:upper-alpha;}.decimal li {list-style-type:decimal;} ol li {font-size:100%}

Learning Objectives  Understand how to create a table  Apply Border, width, background cellpadding, cellspacing, rowspan and colspan to a table  Create Vertical and Horizontal sections within a table  Understand how to write tables that display quickly in the browser  m m

Tables  Before CSS, most webpage layout was done with tables  Easy to create “liquid” designs with tables using percentages for table parameters  Tables have two basic structural elements Rows Columns  Intersection of rows and columns create “cells” that can hold content R1C1R2C2 R2C1R2C2 R1 C1 R4 C6

Mapping out your page  Design on a piece of Paper (graph paper)  Figure out how Rows and Columns you will need  You can put a table within a table (nesting)  Figure out dimensions pixels wide is standard for a web page  Create the ‘Skeleton’ of your page with just xHTML tags as place holder  Add to content to the cell with content

Sample Mapping BannerAd MenuTextPicture Caption Footer

Creating a simple table 1.Type to start the table 2.Add a row 3.Add ”content” to add a cell to the current row 1.Content can be any xHTML element including another table 4.Add more cells 5.Complete the row 6.Repeat steps 2 through 5 to add more rows 7.Finish the table

Table Example

Adding A border  Two ways to add a border xHTML   N is size in pixels  Applies to table and each cell CSS (overrides xHTML)  table{border-style:solid}  table{border: solid red 2px}  Applies to table and not cells  To do cells you have to create style rule for element  td{border-style:solid}

Example of a Simple table with borders

Setting the Width  By default, a browser determines the width of the cells by the content’s width, up to the width of the browser  It better to set the width yourself (two ways) xHTML  CSS  table{width:80%}  td{width:10%}  Using percentages allows the table to adjust to browser (or parent) changes in width (liquid layout)  The width of the widest cell in a column determines the width of the column

Centering a Table on the Page  Again there are two ways CSS  Table{width:400px;margin-right:auto;margin- left:auto} xHTML   ….

Wrapping Text around a Table  xHTML Deprecated Text that appears after will flow to opposite side (put text in )  CSS table{width:200px; float:right (or left)}

Float Example

Combining Tables  Create the inner table and/or contents of cells first  Create the outer table and put a “placeholder” wherever you want the inner table to be  Test both tables  Replace the place holder with the code for the inner table by cut and paste  The more complicated your table nesting, the harder it will be for the browser to figure out “what goes where”…slowing down the page load  Easier to create multiple tables on top of each other

Combining tables Step 1 Step 2 Step 3

Example

Aligning a Cell’s Contents  Two directions Vertical and Horizontal  Default is left align in middle of cell  xHTML  H-direction can be left, right or center  V-direction can be top, middle, bottom or baseline  CSS selector{text-align:hvalue;veritical-align:postion}  Selector can table, tr, td  hvalue can be left, right, center or justify  position can be top, middle, bottom or baseline

Changing the background  xHTML  CSS Selector{background: values} Same as discussed in chapter 11

Example of Spacing and backgrounds

Controlling spacing  Two xHTML attributes for cell spacing Cell Padding is inside the cell and keeps the contents away from the edge of the cell Cell spacing is outside the cells and keeps the edges of respective cells apart  In CSS Use padding and border-spacing properties td{padding:10px;border-spacing:10px}

Padding and spacing Spacing Contents Padding Contents Padding Contents Padding Contents Padding Contents

Spanning a Cell across Columns  You can make a cell span across columns  …  N is number of columns to span Span = 4 Span= 3 Span = 2

Spanning a cell across Rows  You can make a cell span across rows  …  N is number of rows to span RS 3 RS 2 RS 3

Use both Row and Col spans Rowspan=3 Colspan=2 Rowspan=3 Colspan=3 Rowspan=2 Colspan=3

Dividing Your Table into Column Groups  Used for grouping columns for formatting  Two ways Structural (allows border control)  Goes between and first  Non-structural  You can use both together

Column groups

Dividing the table into horizontal Sections  Again used for formatting  After and before first add rows You can only have one head and one foot Attributes can any of the attributes we have already discussed

Choosing Which External Borders to display  You can choose what external sides to display  Location can be  void -> no borders  above -> one border above table  below -> one border below table  vsides -> border on left and right  hsides -> border above and below  rhs -> right side only  lhs -> left side only  box -> all four sides

Choosing Which Internal Borders to display  You can also choose which internal borders to display  Area can be  none -> no internal borders  rows -> lines between rows  cols -> lines between cols  groups -> lines between colgroups and thead, tbody and tfoot  all -> lines between each row and column

Controlling Line Breaks in a Cell  To keep text on a single line text Browser will make that cell as wide as it needs to be to display text on one line Overrides any width attributes or properties set

Speeding up Table Display  Keep tables small  Specify width of table in pixels  Specify width of cells in pixels or percentages  Divide table into column groups  Add table-layout:fixed to table element style rule Only looks at first row to determine width of columns Can cause some cells to be too small

Using Dreamweaver

Assignment #7 Banner.gif About Fort Kent (3X2 table in step g Part I) Mission Statement (3X2 table in step g part II) History of UMFK (?x? table in step g part III) About Fort Kent (?x? table in step g part IV) Links (created in step h) Main Table created in step f

Final Table Banner.gif Links 3X2 ?X? ?x?