Chapter 9 Table Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.

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.
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.
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.
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.
Lecture 16: SQL and HTML 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 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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 and Forms HTML5 Tables and Forms. Table Overview table element ( ) Attributes: align (left, right, center), bgcolor, border, cellpadding, cellspacing,
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 23 rd February. What XHTML have we done so far? Hyperlinks & anchors - XHTML supports 3 types of lists:  Ordered – +  Unordered – +  Definition.
CSS Table Properties.
1 Week Four– Advance HTML 2 Dr. Fadi Safieddine. 2 Lecture Content Basic HTML Tables Using based Feedback form Creating and Using Image Maps Nested.
Tutorial 5: Tables Session OBJECTIVES Marking row groups Marking column groups Setting the table frame Specifying the table’s internal gridlines.
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.
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything › Text › Lists › Other tables › Pictures › …
 2003 Prentice Hall, Inc. All rights reserved. Introduction to HTML: Tables Outline 1 Introduction 2 Basic HTML Tables 3 Intermediate HTML Tables and.
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.
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.
Tutorial 5 Working with Web Tables. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Learn and Apply the structure of.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Organizing Content with Lists and Tables
Web Development & Design Foundations with HTML5
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.
Tutorial 5 Working with Tables and Columns
How to work with tables Chapter 10.
Chapter 7 Tables.
Session I Chapter 10 - How to Work with Tables
8 Tables.
HTML and CSS 8th Edition Chapter 18: 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
ITI 134: HTML5 Desktop and Mobile Level II
Principles of Web Design 5th Edition
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:

Chapter 9 Table Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1

Learning Outcomes  Describe the recommended use of a table on a web page  Configure a basic table with the table, table row, table header, and table cell elements.  Configure table sections with the thead, tbody, and tfoot elements.  Configure a table to provide for accessibility  Use CSS to style an HTML table  Describe the purpose of CSS3 structural pseudo-classes 2

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

HTML Table Elements Contains the table Contains a table row Contains a table cell Configures a description of the table 4

The Table Element (block) Element Contains the table Element Contains a table row Element Contains a table data cell Element Contains a table header cell Element Configures a description of the table 5

HTML Table Example Birthday List Name Birthday James 11/08 Karen 4/17 Sparky 11/28 6 Birthday List

HTML Table Example 2 Name Birthday James 11/08 Karen 4/17 Sparky 11/28 7 Using the Element

HTML border Attribute  Indicates the table is specifically not used for page layout Optional border=“1” Visible browser default border border=“” No visible browser default border. 8

HTML colspan Attribute Birthday List James 11/08 Karen 4/17 9

HTML rowspan Attribute This spans two rows Row 1 Column 2 Row 2 Column 2 10

Accessibility and Tables  Use table header elements ( tags) to indicate column or row headings.  Use the summary attribute on the table element to provide an overview of the purpose and organization of the table.  Use the caption element to provide the title/caption for the table.  Other attributes that provide for accessibility: headers & id scope

Accessibility: headers & id Attributes Word Schedule Day Hours Monday 4 Tuesday 3 Total 7

Using CSS to Style a Table HTML Attribute CSS Property alignAlign a table: table { width: 75%; margin: auto; } Align within a table cell: text-align bgcolorbackground-color cellpaddingpadding cellspacingborder-spacing or border-collapse height valignvertical-align width borderborder, border-style, or border-spacing ---background-image ---caption--side

CSS border-collapse property  The border-collapse property sets whether the table borders are collapsed into a single border or detached as in standard HTML.  Values: separate, collapse  Default Value: separate  Recommended declaration: table{border-collapse:collapse;} 14 separated borders collapsed borders

CSS3 Structural Pseudo-classes Pseudo-classPurpose :first-of-typeApplies to the first element of the specified type. :first-childApplies to the first child of an element. (CSS2 selector) :last-of-typeApplies to the last element of the specified type. :last-childApplies 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

Table Row Groups Work Schedule Day Hours Monday 4 Tuesday 3 Total 7  table head rows  table body rows  table footer rows

Summary  This chapter introduced coding techniques to create and configure tables.  You will use these skills over and over again as you create web pages. 17