Basics of Web Design Chapter 9 Table Basics Key Concepts

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 …
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
CIS101 Introduction to Computing Week 07. Agenda Your questions Resume project Review Project Two HTML Project Three This week online Next class.
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.
1 Tables: Data in Rows and Columns – What is Table? – How Tables are Used? – Designing Tables – Table, Cell, Row Attributes – Using Tables for Alignment.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
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.
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
>> 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.
Web Development & Design Foundations with XHTML Chapter 8 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.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
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.
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.
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.
Creating Tables in a Web Site HTML 4 Created by S. Cox.
Chapter 9 Table Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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
Organizing Content with Lists and Tables
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.
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.
TABLES.
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
H T M L A B E S X P I N D.
Murach's HTML and CSS, 4th Edition
Site Development Foundations Lesson 6
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
Presentation transcript:

Basics of Web Design Chapter 9 Table Basics Key Concepts Copyright © 2016 Terry Ann Morris, Ed.D

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

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

HTML Table Elements <table> Contains the table <tr> Contains a table row <td> Contains a table cell <caption> Configures a description of the table

The Table Element <table> Contains the table <tr> Element Contains a table row <td> Element Contains a table data cell <th> Element Contains a table header cell <caption> Element Configures a description of the table

HTML Table Example 1 Birthday List <table border="1"> <caption>Birthday List</caption> <tr> <td>Name</td> <td>Birthday</td> </tr> <td>James</td> <td>11/08</td> <td>Karen</td> <td>4/17</td> <td>Sparky</td> <td>11/28</td> </table> Birthday List

HTML Table Example 2 Using the <th> Element <table border="1"> <tr> <th>Name</th> <th>Birthday</th> </tr> <td>James</td> <td>11/08</td> <td>Karen</td> <td>4/17</td> <td>Sparky</td> <td>11/28</td> </table> Using the <th> 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

HTML colspan Attribute <table border="1"> <tr> <td colspan=“2”> Birthday List</td> </tr> <td>James</td> <td>11/08</td> <td>Karen</td> <td>4/17</td> </table>

HTML rowspan Attribute <table border="1"> <tr> <td rowspan="2">This spans two rows</td> <td>Row 1 Column 2</td> </tr> <tr> <td>Row 2 Column 2</td> </tr> </table>

Accessibility and Tables Use table header elements (<th> 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 <table> <caption> Word Schedule</caption> <tr> <th id="day">Day</th> <th id="hours">Hours</th> </tr> <td headers="day">Monday</td> <td headers="hours">4</td> <td headers="day">Tuesday</td> <td headers="hours">3</td> <td headers="day">Total</td> <td headers="hours">7</td> </table>

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 bgcolor background-color cellpadding padding cellspacing border-spacing or border-collapse height valign vertical-align width border border, border-style, or border-spacing --- background-image caption-side

CSS3 Structural Pseudo-classes 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

Table Row Groups <thead> table head rows <caption>Work Schedule</caption> <thead> <tr> <th>Day</th> <th>Hours</th> </tr> </thead> <tbody> <td>Monday</td> <td>4</td> <td>Tuesday</td> <td>3</td> </tbody> <tfoot> <td>Total</td> <td>7</td> </tfoot> </table> <thead> table head rows <tbody > table body rows <tfoot> table footer rows

Summary This chapter introduced coding techniques to create and configure tables. You will find these skills useful as you create web pages.