Implementing Tables to Hold Data in HTML

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.
 2001 Prentice Hall, Inc. All rights reserved. Outline 1 Table1.html 1 2
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.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 4: Tables and Frames.
Cos 125 Day 22. Agenda Assignment 6 Not corrected Waiting for tune-ins Assignment 7 is posted Assignment 7 Due April 2PM Left to do 1 Assignments.
TABLES. Tables Consider the following web-page.
Cos 125 Day 24. Agenda All students meeting 7 Pm Monday, April 19 UMS Strategic Plan Assignment #7 Posted Due April 20 Two (one?) more to go Quiz Four.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
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.
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.
How to create tables in HTML…
Updated on: September 4, 2010 CIS67 Foundations for Creating Web Pages Professor Al Fichera.
INTRODUCTORY Tutorial 7 Creating Tables. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Discern the difference between data tables and.
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
Chapter 9 Table Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Html Tables Basic Table Markup. How Tables are Used For Data Display Tables were originally designed to display and organize tabular data (charts, statistics,
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.
HTML: Tables & Frames Internet Technology.
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 › …
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.
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.
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.
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.
Introduction to Web Site Development John Hurley Department of Computer Science California State University, Los Angeles Lecture 4: Favicons Tables and.
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.
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.
INTRODUCTION ABOUT DIV Most websites have put their content in multiple columns. Multiple columns are created by using or elements. The div element is.
Organizing Content with Lists and Tables
Web Development & Design Foundations with HTML5
HTML Tables & CSS Styles
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.
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Introduction to Web Site Development
How to work with tables Chapter 10.
Chapter 7 Tables.
HTML Tables CS 1150 Fall 2016.
HTML Table Teacher: Ms. Olifer.
HTML and CSS 8th Edition Chapter 18: Tables.
TABLES, LISTS & IMAGES.  Tables are defined with tag.  Table is divided into rows and columns.  Table must have at least one row and one column  Table.
Web Development & Design Foundations with H T M L 5
Introduction to XHTML Cont:.
WHAT'S A TABLE? Explain: The types of information commonly displayed in tables include stocks and shares, sports results, train timetables and price.
Using rowspan and colspan attributes
Using rowspan and colspan attributes
Introduction to HTML.
Web Development & Design Foundations with HTML5
Using tables in HTML Goes in order with Examples at my site.
Site Development Foundations Lesson 6
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:

Implementing Tables to Hold Data in HTML

Example Table of high scores

Note By default… Data is arranged in table layout, but …there are no lines (until you style the table with css) This lesson is not about styling tables, but let’s draw some borders to make viewing this easier

Styles

That make up a basic table Individual Tags That make up a basic table

<table> Tag Pair of tags Surrounds entire content of table

<tr> Tag Pair of tags Specify a table row () One set of these surrounds each row of the table

<th> Tag Pair of tags Surrounds each cell containing a heading (Table Heading) Set of these for each cell containing headings

<td> Tag Pair of tags Surrounds each cell containing a piece of data (Table Data) Set of these for each cell containing data

Dimensions Up to You Can have as many rows and as many columns as needed

Attributes colspan & rowspan

Spanning Multiple Cells What if you want one row to span several columns? …or one column to span several rows?

Colspan & rowspan

Additional Markup <thead> <tbody> <tfoot> Put around heading rows <tbody> Put around main data content <tfoot> Put around cells making up footer Note: This is WEIRD, but you MUST markup the <tfoot> BEFORE the <tbody> Note: If you use one, you MUST use all three!

Example

Why Bother with This? If a table is very long …and we print it It takes up multiple pages The <thead> content will print over multiple pages Could also make it so only <tbody> is scrollable while keeping headings on screen when you’re really a styling master

Note: There may not be a natural footer (which usually contains some sort of summary data) Sometimes people opt to repeat header information in the footer (which can be helpful visually for long tables)