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

Slides:



Advertisements
Similar presentations
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything Text Lists Other tables Pictures …
Advertisements

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.
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.
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.
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.
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.
CIS 1310 – HTML & CSS 8 Tables. CIS 1310 – HTML & CSS Learning Outcomes  Create a Table  Apply Attributes to Format Tables  Increase the Accessibility.
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
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
 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.
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.
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.
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.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Web Development & Design Foundations with HTML5
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
Working with Tables: Module A: Table Basics
>> 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.
Chapter 7 Tables.
Session I Chapter 10 - How to Work with Tables
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.
HTML Level II (CyberAdvantage)
Web Development & Design Foundations with H T M L 5
Web Development & Design Foundations with H T M L 5
Implementing Tables to Hold Data in HTML
Web Development & Design Foundations with HTML5
Site Development Foundations Lesson 6
Principles of Web Design 5th Edition
Creating Tables Steps for creating a Table Important Facts about Table
Lesson 5: HTML Tables.
Hypertext Markup Language Table 11th Lecture
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 7 TH EDITION Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris

LEARNING OUTCOMES  In this chapter, you will learn how to...  Create a basic table with the table, table row, table header, and table cell elements  Configure table sections with the thead, tbody, and tfoot elements  Increase the accessibility of a table  Style an HTML table with CSS  Describe the purpose of CSS structural pseudo-classes 2

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 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 HTML TABLE EXAMPLE 2 Name Birthday James 11/08 Karen 4/17 Sparky 11/28 6 Using the Element

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

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

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

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

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 11

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

Copyright © Terry Felke-Morris CHECKPOINT 1. Describe the purpose of using a table on a web page. 2. How is the text contained a th element displayed by the browser? 3. Describe one coding technique that increases the accessibility of an HTML table. 13

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 14

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 15 Zebra Stripe a Table tr:nth-of-type(even) { background-color: #eaeaea; }

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 16

Copyright © Terry Felke-Morris SUMMARY  This chapter introduced the HTML and CSS techniques used to create and configure tables on web pages. 17