INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.

Slides:



Advertisements
Similar presentations
Using HTML Tables Presenting Information & Layout Control.
Advertisements

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.
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.
Working with Web Tables
 2001 Prentice Hall, Inc. All rights reserved. Outline 1 Table1.html 1 2
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.
Tutorial 4: Designing a Web Page with Tables
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Introducing Web Tables
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.
XP Creating Web Pages with HTML Using Tables. XP Objectives Create a text table Create a table using the,, and tags Create table headers and captions.
Using HTML 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.
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.
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
HTML Essentials Tables and Table Tags. Overview Use of Tables goes beyond tabulating data Frequently used to format Web pages / control layout Especially.
 Tables are commonly used to display all manner of data, such as timetables, financial reports, and sports results etc.  Tables, just like spreadsheets,
Chapter 5 Working with Tables. Agenda Add a Table Assign a Table Border Adjust Cell Padding and Spacing Adjust Cell Width and Height Add Column Labels.
Tables in HTML Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
XHTML1 Tables N100 Creating a Simple Web Page. XHTML2 Creating Basic Tables Tables are collections of rows and columns that you use to organize and display.
Identifies the Structure Table Row Column 1 Table Heading Column 2.
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.
Internet Skills An Introduction to HTML Alan Noble Room 504 Tel: (44562 internal)
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 2.
>> 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.
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
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
Tutorial 5 Working with Tables and Columns
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
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.
ECA 228 Internet/Intranet Design I Tables. ECA 228 Internet/Intranet Design I Basic HTML Tables Created as a way to present rows and clumns of data.
Tables in HTML. Table Tag HTML tables always begin and end with a table tag. Syntax:
 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.
How To Create HTML Tables. Table Structure General HTML code for a Web Table: table cells table cells.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Creating Tables in a Web Site HTML 4 Created by S. Cox.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
TABLES. Session Checklist ► Learn the ways that tables can help you organize data on your Web site ► Learn how to prepare a spreadsheet-like table that.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Web Development & Design Foundations with HTML5
Working with Tables: Module A: Table Basics
>> HTML: Tables.
Web Development & Design Foundations with HTML5 8th Edition
LAB Work 02 MBA 61062: E-Commerce
HTML Tables CS 1150 Spring 2017.
HTML Tables.
Introduction to HTML.
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
Web Development & Design Foundations with H T M L 5
Web Development & Design Foundations with HTML5
Site Development Foundations Lesson 6
Lesson 5: HTML Tables.
Web Development & Design Foundations with HTML5
Presentation transcript:

INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011

Outline  Introducing Tables  Basic Table Elements and Attributes  Advance Tables  Accessibility Issues with Tables  Exercise

Introducing Tables

 Think of grids, or spreadsheets in a web page.  They consist of rows and columns.  The interception of a row and a column is called a “cell”  Row: set of cells in the same line from left to right  Column: line of cells going from top to bottom  The XHTML element is:

The element  A table is written out row by row.  A row is contained inside a element  : table row  Each cell is written inside the row element using a element.  : table data

The element  A table is written out row by row.  A row is contained inside a element  : table row  Each cell is written inside the row element using a element.  : table data

The element (cont’d) column 1, row 1 column 2, row 1 … column 1, row 2 column 2, row 2 … …. Indicates the start of a row Table data (cell) Indicates the end of a row Indicates the start of a table

A slightly more complex example Go to:..\web-dev.localhost\table-slightly-complex.html

Basic Table Elements and Attributes

The element attributes  : contains  All of the universal attributes  Basic event attributes for scripting  Deprecated attributes:  align: indicates where the table should be align (left, center, right). Text flows around the table when uses align.  bgcolor: sets the background color for the table  border: it will create a border around the table and each cell  cellpadding: create a space between cell and its content.  cellspacing: create space between borders of each cell  width: specify the width of the table in pixels, or as a percentage

The element attributes  : contains  align: specifies the position of the content of all the cells in the row (left, center, right, justify).  bgcolor: sets the background color of the row  valign: specified the vertical alignment of the contents of each cell in the row. (top, middle, bottom, baseline)  *All of these attributes have been deprecated in favor of CSS

The and attributes  Every cell is represented by either:  : cells containing table data  : cells containing table headings  By default:  : bold font, horizontally aligned in the center of the cell  : left-aligned, not in bold.  Any styles that these attributes have will override settings for the table and for row elements.

The and attributes  align(*): sets the horizontal alignment for the content of the cell (left, right, center, justify)  bgcolor (*): sets the background color for the cell.  colspan: specify how many columns of the table a cell will span across.  rowspan: specifies the number of rows of the table a cell will span across.  height(*): specifies the height of a cell  width(*): specified the width of a cell  valign(*): specifies vertical alignment (top, middle, bottom)

Advance Tables

 Splitting table into three sections  head  body  foot  Captioning tables  Using rowspan and colspan  Grouping columns using  Sharing attributes between unrelated columns using element

Splitting up Tables  Can be divided into three parts: head, body and foot  : to create a separate table header  : to indicate the main bod  : to create a separate table footer  must appear before

Example using,, This is the head of the table This is the foot of the table Cell Cell Cell Cell

: The element  Indicates the caption of the table. The caption must be between the tags, and immediately after and before the first row. This is a table caption …

Spanning columns: the colspan attribute

Spanning rows: the rowspan attribute

Grouping columns: The element  It groups one or more adjacent columns into a group.  It uses the element to create groups  This allows to format different group of columns rather than formatting each column at a time.

Example of grouping columns … 7. …

Questions?  Before the exercise

Exercises  Do exercise on course website  Create an image with hotspots