Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris.

Slides:



Advertisements
Similar presentations
Using HTML Tables Presenting Information & Layout Control.
Advertisements

Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything Text Lists Other tables Pictures …
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
TABLES 6 How to create tables What information suits tables How to represent complex data in 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.
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.
HTML TABLES Cyndi Hageman. Tables   Attributes Name or id – used to identify the table Border = set this to determine if there is a border and the size.
Lists and Tables Cool sites Lists unordered, ordered, definition Tables basic.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris.
 Tables are commonly used to display all manner of data, such as timetables, financial reports, and sports results etc.  Tables, just like spreadsheets,
Tutorial #8 – Creating Data Tables. Tutorial #6 Review – Layouts Two Column Fixed Width, Three Column Fixed Width Class VS. ID Container Universal Selector.
CIS 1310 – HTML & CSS 8 Tables. CIS 1310 – HTML & CSS Learning Outcomes  Create a Table  Apply Attributes to Format Tables  Increase the Accessibility.
Lesson 6. Links in HTML Computer Science Welcome to Virtual University in Pakistanhttp://
Tables in HTML Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
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.
Tables and Forms HTML5 Tables and Forms. Table Overview table element ( ) Attributes: align (left, right, center), bgcolor, border, cellpadding, cellspacing,
>> 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.
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.
HTML B OOT C AMP Chapter 10 Tables Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved.
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.
Basics of Web Design 1 Copyright © 2016 Pearson Education, Inc., Hoboken NJ.
Tutorial 5 Working with Tables and Columns
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
Tutorial 5 Working with Tables and Columns
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.
 2003 Prentice Hall, Inc. All rights reserved. Introduction to HTML: Tables Outline 1 Introduction 2 Basic HTML Tables 3 Intermediate HTML Tables and.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris.
26 HTML Tables … surround table … surround each row … surround each cell … like, but bold and centered by default (for table headings) … table title No.
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.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
Tutorial 5: Tables Session OBJECTIVES Create a table Insert a table summary Insert a table caption Add rows and cells Merge Cells inside a Table.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
Tables creating a table within a web page. What makes up a table? Columns Rows.
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.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Web Development & Design Foundations with HTML5
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
>> HTML: Tables.
Web Development & Design Foundations with HTML5 8th Edition
HTML Tables CS 1150 Spring 2017.
HTML Tables.
How to work with tables Chapter 10.
8 Tables.
Creating Tables Steps for creating a Table Important Facts about Table
Creating Tables Steps for creating a Table Important Facts about Table
Web Design and Development
Lesson 8 Building Tables.
Web Development & Design Foundations with H T M L 5
Web Development & Design Foundations with H T M L 5
Web Development & Design Foundations with HTML5
Site Development Foundations Lesson 6
Creating Tables Steps for creating a Table Important Facts about Table
Lesson 5: HTML Tables.
Web Development & Design Foundations with HTML5
Basics of Web Design Chapter 9 Table Basics Key Concepts
Presentation transcript:

Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris

HTML TABLE  Tables are used on web pages to organize tabular information  Composed of rows and columns – similar to a spreadsheet.  Each individual table cell is at the intersection of a specific row and column.  Configured with table, tr, and td elements 2

Copyright © Terry Felke-Morris EXAMPLE  file:///J:/INF286/chapter8/table1.html 3

Copyright © Terry Felke-Morris HTML TABLE ELEMENTS Contains the table Contains a table row Contains a table cell Configures a description of the table 4

Copyright © Terry Felke-Morris HTML TABLE EXAMPLE Bird Sightings Name Date Bobolink 5/25/10 Upland Sandpiper 6/03/10 5

Copyright © Terry Felke-Morris EXAMPLE  file:///J:/INF286/chapter8/table2.html 6

Copyright © Terry Felke-Morris HTML TABLE EXAMPLE 2 Name Birthday James 11/08 Karen 4/17 Sparky 11/28 7 Using the Element

Copyright © Terry Felke-Morris EXAMPLE  file:///J:/INF286/chapter8/table3.html file:///J:/INF286/chapter8/table3.html 8

Copyright © Terry Felke-Morris HTML COMMON TABLE ATTRIBUTES  align (obsolete)  bgcolor (obsolete)  border (obsolete)  cellpadding (obsolete)  cellspacing (obsolete)  summary (obsolete but may be reinstated)  width (obsolete)  Use CSS to configure table characteristics instead of HTML attributes 9

Copyright © Terry Felke-Morris HANDS-ON-PRACTICE 8.1  file:///J:/INF286/chapter8/table4.html file:///J:/INF286/chapter8/table4.html 10

Copyright © Terry Felke-Morris HTML COMMON TABLE CELL ATTRIBUTES  align (obsolete)  bgcolor (obsolete)  colspan  rowspan  valign  height (deprecated)  width (deprecated)  Use CSS to configure most table cell characteristics instead of HTML attributes 11

Copyright © Terry Felke-Morris HTML COLSPAN ATTRIBUTE Birthday List James 11/08 Karen 4/17 12

Copyright © Terry Felke-Morris HTML ROWSPAN ATTRIBUTE This spans two rows Row 1 Column 2 Row 2 Column 2 13

Copyright © Terry Felke-Morris EXAMPLE  file:///J:/INF286/chapter8/table5.html file:///J:/INF286/chapter8/table5.html 14

Copyright © Terry Felke-Morris HANDS-ON-PRACTICE 8.2  file:///J:/INF286/chapter8/table6.html file:///J:/INF286/chapter8/table6.html 15

Copyright © Terry Felke-Morris ACCESSIBILITY AND TABLES  Use table header elements ( tags) to indicate column or row headings.  Use the caption element to provide a text title or caption for the table.  Complex tables: Associate table cell values with their corresponding headers ◦ tag id attribute ◦ tag headers attribute 16

Copyright © Terry Felke-Morris Bird Sightings Name Date Bobolink 5/25/10 Upland Sandpiper 6/03/10 17

Copyright © Terry Felke-Morris EXAMPLE  file:///J:/INF286/chapter8/table8.html file:///J:/INF286/chapter8/table8.html 18

Copyright © Terry Felke-Morris USING CSS TO STYLE A TABLE HTML Attribute CSS Property align Align a table : table { width: 75%; margin: auto; } Align within a table cell: text-align bgcolorbackground-color cellpaddingpadding cellspacing border-spacing or border-collapse height valignvertical-align width border border, border-style, or border-spacing -- background-image 19

Copyright © Terry Felke-Morris HANDS-ON-PRACTICE 8.3  file:///J:/INF286/chapter8/starter.html file:///J:/INF286/chapter8/starter.html  file:///J:/INF286/chapter8/menu.html file:///J:/INF286/chapter8/menu.html 20

Copyright © Terry Felke-Morris CSS STRUCTURAL PSEUDO-CLASSES Pseudo-class Purpose :first-of-type Applies to the first element of the specified type :first-child Applies to the first child of an element (CSS2 selector) :last-of-type Applies to the last element of the specified type :last-child Applies to the last child of an element :nth-of-type(n) Applies to the “nth” element of the specified type Values: a number, odd, or even 21 Zebra Stripe a Table tr:nth-of-type(even) { background-color: #eaeaea; }

Copyright © Terry Felke-Morris HANDS-ON-PRACTICE 8.4  file:///J:/INF286/chapter8/menu.html file:///J:/INF286/chapter8/menu.html  file:///J:/INF286/chapter8/menucss3.html file:///J:/INF286/chapter8/menucss3.html 22

Copyright © Terry Felke-Morris TABLE ROW GROUPS Time Sheet Day Hours Monday 4 … Friday 3 Total 18  table head rows  table body rows  table footer rows 23

Copyright © Terry Felke-Morris HANDS-ON-PRACTICE 8.5  file:///J:/INF286/chapter8/tfoot.html file:///J:/INF286/chapter8/tfoot.html 24