HTML Table Teacher: Ms. Olifer.

Slides:



Advertisements
Similar presentations
Tables Learn to create and enhance TABLES using a variety of attributes and formats.
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.
 2001 Prentice Hall, Inc. All rights reserved. Outline 1 Table1.html 1 2
Spanning Rows and Columns Mrs. Wilson Internet Basics & Beyond.
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.
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.
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.
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.
>> 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.
Tables Module 2: HTML Basics LESSON Extension. Module 2: HTML Basics LESSON Extension Lesson Overview In this lesson, you will learn to:  Create tables.
Chapter 9 Table Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
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.
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.
How To Create HTML Tables. Table Structure General HTML code for a Web Table: table cells table cells.
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.
Advanced Tables. Spanning Columns and Rows: So far, our tables have been relatively simple, with a uniform grid of rows and columns: XHTML allows us to.
Client-Side Internet and Web Programming
Advanced Tables.
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.
Loops BIS1523 – Lecture 10.
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
Client-Side Internet and Web Programming
How to work with tables Chapter 10.
Chapter 7 Tables.
H T M L A B E S X P I N D.
Session I Chapter 10 - How to Work with Tables
HTML Tables CS 1150 Fall 2016.
8 Tables.
Creating Tables Steps for creating a Table Important Facts about Table
HTML and CSS 8th Edition Chapter 18: Tables.
Chapter 8 Tables.
Creating Tables Steps for creating a Table Important Facts about Table
TABLES.
LESSON Extension Module 2: HTML Basics Tables.
HTML Level II (CyberAdvantage)
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
Advanced Tables.
Implementing Tables to Hold Data in HTML
Using rowspan and colspan attributes
Introduction to HTML.
H T M L A B E S X P I N D.
Site Development Foundations Lesson 6
ITI 134: HTML5 Desktop and Mobile Level II
Principles of Web Design 5th Edition
Creating Tables Steps for creating a Table Important Facts about Table
Lesson 5: HTML Tables.
H T M L A B E S X P I N D.
Hypertext Markup Language Table 11th Lecture
Basics of Web Design Chapter 9 Table Basics Key Concepts
Presentation transcript:

HTML Table Teacher: Ms. Olifer

Table <table> </table> The <table> element will contain all of the tabular data you plan on displaying. The first step in entering data into the table is to add rows using the table row element: <tr></tr> Rows aren't sufficient to add data to a table. Each cell element must also be defined. In HTML, you can add data using the table data element: <td></td>.

Table Headings Table data doesn't make much sense without titles to describe what the data represents. To add titles to rows and columns, you can use the table heading element: <th></th>. The table heading element is used just like a table data element, except with a relevant title. Just like table data, a table heading must be placed within a table row. Table heading is centered and bold by default.

Example

Example: explanations First, a new row was added to hold the three headings: a blank heading, a Saturday heading, and a Sunday heading. In the second row, one table heading was added as a row title: Temperature. Note, also, the use of the scope attribute, which can take one of two values: 1) row - this value makes it clear that the heading is for a row. 2) col - this value makes it clear that the heading is for a column.

Table border A border could be added to a table using the border attribute and setting it equal to an integer. This integer would represent the thickness of the border.

Column Span Data can span columns using the colspan attribute. The attribute accepts an integer (greater than or equal to 1) to denote the number of columns it spans across.

Example

Row Span Data can also span multiple rows using the rowspan attribute. The rowspan attribute is used for data that spans multiple rows. It accepts an integer (greater than or equal to 1) to denote the number of rows it spans across.

Example

Table Body Over time, a table can grow to contain a lot of data and become very long. When this happens, the table can be sectioned off so that it is easier to manage. Long tables can be sectioned off using the table bodyelement: <tbody></tbody>. The <tbody> element should contain the all of the table's data, excluding the table headings.

Table headings When a table's body is sectioned off, however, it also makes sense to section off the table's headings using the <thead></thead> element. The bottom part of a long table can also be sectioned off using the <tfoot> </tfoot> element. Example: <tfoot> <tr> <th>Total</th> <td>$22</td> </tr> </tfoot>