Tables.  How tables are used  Basic table structure  Importance of headers  Spanning rows and columns  Cell padding and spacing  Accessibility.

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

Chapter 3 – Web Design Tables & Page Layout
IT Accessibility Committee Accessible Tables Prepared by the NYS Forum IT Accessibility Committee
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.
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.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Introducing Web Tables
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.
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.
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.
 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.
XP 1 Tutorial 4 Designing a Web Page with Tables.
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.
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.
XHTML Tables. Tables create little boxes in which you can place things to keep them organized. The little boxes are called table cells. Tables are created.
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.
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
>> 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.
10/4/2015Tables1 Spring, 2008 Modified by Linda Kenney 4/2/08.
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
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Tutorial 5 Working with Tables and Columns
Html Tables Basic Table Markup. How Tables are Used For Data Display Tables were originally designed to display and organize tabular data (charts, statistics,
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
Week 5 Working with Tables. 2 Understanding Table Basics.
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.
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 - Structured Block Elements Lists. Unordered Lists list item. list item.
Web Design (9) Tables. HTML Tables (1) HTML Tables may be used to organise calendars, schedules, statistics and other information that can be arranged.
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything › Text › Lists › Other tables › Pictures › …
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.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
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.
HTML Tables The HTML table model allows authors to arrange data - text, preformatted text, images, links, forms, form fields, other tables, etc. - into.
26 HTML Tables … surround table … surround each row … surround each cell … like, but bold and centered by default (for table headings) … table title No.
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.
Tables creating a table within a web page. What makes up a table? Columns Rows.
Organizing Content with Lists and Tables
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
Working with Tables: Module A: Table Basics
>> HTML: Tables.
Web Development & Design Foundations with HTML5 8th Edition
Chapter 8 and 9.
HTML Tables CS 1150 Spring 2017.
HTML Tables.
Tutorial 5 Working with Tables and Columns
Chapter 7 Tables.
H T M L A B E S X P I N D.
Табеле Табеле се представљају елементом TABLE.
HTML and CSS 8th Edition Chapter 18: Tables.
Chapter 8 Tables.
Web Development & Design Foundations with H T M L 5
Site Development Foundations Lesson 6
Principles of Web Design 5th Edition
Hypertext Markup Language Table 11th Lecture
Basics of Web Design Chapter 9 Table Basics Key Concepts
Presentation transcript:

Tables

 How tables are used  Basic table structure  Importance of headers  Spanning rows and columns  Cell padding and spacing  Accessibility

 When you need to add tabular material  data arranged into rows and columns  May be used to organize calendars, schedules, stats, or other types of info  Back in the old days, tables were used to make multi- columned layouts on webpages, but no more.

 Large tables difficult to view on mobile devices  Need to consider logical layout to accommodate users who may be hearing the data read aloud  Example of screenreader Example of screenreader

Menu item Calories Fat (g) Chicken noodle soup Caesar salad

Sufjan Stevens Illinoise Asthmatic Kitty Records The Shins Oh Inverted World Sub-pop Records

 Text marked up as headers is displayed differently from other cells in the table  Exactly how they display is dependent on the browser  Headers are important – provide information or context about cells in row or column  Headers are a key tool for making table content accessible  Don’t try to fake headers by formatting a row of td elements differently from the rest!!  Also, don’t avoid using th elements because of their default rendering (bold and centered).  Mark headers semantically and change presentation with style rule

 Stretching of a cell to cover several rows or columns  Allows you to create complex table structures  Makes markup a little more difficult  Use colspan or rowspan attributes

 Used as an attribute in the td or th elements  Stretches a cell to the right to span over the subsequent columns Fat Saturated Fat (g) Unsaturated Fat (g)

 Used as an attribute in the td or th elements  Stretches a cell downward over several rows Serving Size Small (8oz.) Medium (16oz.) Large (24oz.)

 More elements and attributes that offer more complex semantic descriptions and improve accessibility  Row group elements – describe rows or groups of rows using thead, tfoot, tbody May also be used to apply styles to various regions of table  Column group elements (col or colgroup)– used to identify columns add semantic context to information doesn’t appear on page, just describes columns before table data begins

Nutritional Information (Calorie and Fat Content) Menu item Calories Fat (g) Chicken noodle soup Caesar salad

 Need to consider non-sighted users  Tabular data is challenging, but there are measures you can take to improve the experience and make content more understandable Describing table content Connecting cells and headers

 Use caption element to give table title or brief description of contents  caption element must be first thing within the table element

Nutritional Information Menu item Calories Fat (g) …table continues…

 Sometimes it’s difficult to know which header applies to which cells may be at the left or right edge of a row rather than top of column  scope attribute associates a table header with the row, column or group of rows  headers attribute used in the td element to explicitly tie it to a header’s id value not going into detail on this one

 Various attributes and styles you can set border – sets border width in pixels cellpadding – sets space inside the cell cellspacing – sets space outside the cell backgroundColor – used in style to set the background color of an element color – used in style to set the color of text