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.

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to HTML Chapter Six Tables.
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.
Tables Learn to create and enhance TABLES using a variety of attributes and formats.
Designing Web Pages Tables part one. Using Tables for Page Layout 2.
Tutorial 5 Working with Web Tables
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Working with Web Tables
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
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.
Tutorial 4: Designing a Web Page with Tables
CIS101 Introduction to Computing Week 07. Agenda Your questions Resume project Review Project Two HTML Project Three This week online Next class.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Creating a Web Page with Tables. Objectives Create a text table with preformatted text Create the basic structure of a graphical table Organize table.
Introducing Web Tables
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.
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.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
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.
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,
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.
XP 1 Tutorial 4 Designing a Web Page with Tables.
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.
HTML Comprehensive Concepts and Techniques Second Edition Project 3 Creating Tables in a Web Site.
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.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 2.
CNIT 132 – Week 7 HTML - Tables. Tables on the World Wide Web A table can be displayed on a Web page either in a text or graphical format. A text table:
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
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
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.
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.
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.
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.
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.
1 Tables attributes. 2 Table attributes: border Activates border around cells Syntax: – where “n” is a value in pixels which controls the “thickness”
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.
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.
Creating Tables in a Web Site HTML 4 Created by S. Cox.
Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
Tutorial 5: Tables Session OBJECTIVES Create a table Insert a table summary Insert a table caption Add rows and cells Merge Cells inside a Table.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
Tutorial 5 Working with Web Tables. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Learn and Apply the structure of.
1 Mansoor Ahmed Bughio. 2 HTML TABLES With HTML you can create tables. Examples Tables This example demonstrates how to create tables in an HTML document.
CIS101 Introduction to Computing Week 07 Spring 2004.
Working with Tables: Module A: Table Basics
LAB Work 02 MBA 61062: E-Commerce
HTML Tables CS 1150 Spring 2017.
Tutorial 5 Working with Tables and Columns
The Internet 10/25/11 XHTML Tables
Tables:.
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
Site Development Foundations Lesson 6
Lesson 5: HTML Tables.
Presentation transcript:

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 using the tag. Open your template.htm file and create the following table with me.

Creating a Table My First Table Name Class (cont’d) Designates a new row in the table Designates headings Designates the end this row Designates start of table

Creating a Table Sue sophomore Joe junior Designates a table data cell

Creating a Table Sally senior Specifies the end of this table

Table Cells table data. This element creates individual cells in a row. Content of a table goes in this element. table heading. This element is like the, but also displays the text inside the cells as centered and boldface

Table Tag Attributes The table tag can have attributes that specify additional formatting for the entire table. Syntax: Try different size borders on your table – try 1, 5, and 10. Tip: Set border="0" to display tables with no borders!

cellspacing Attribute Cell spacing controls the amount of space inserted between table cells. Syntax: Default size is 2 pixels. Experiment with cellspacing. (Don’t delete the border attribute) Try values such as 0, 1, 5, and 10 pixels.

cellpadding Attribute Cell padding controls the space between the table text and cell borders. Syntax: Default size is 2 pixels. Experiment with cellpadding. Try values such as 0, 1, 5, and 10 pixels.

cellpadding vs. cellspacing Cell Contents Cell Contents Cell Contents Cell Contents cell spacing is between the border of each cell (blue) cell padding is between a cell’s contents and its border (orange) Table borderCell border

Table width Attribute The syntax for specifying table size is: Size is the width of the table, either in pixels or as a percentage of the display area. Example

Caption Element A table caption is used to tell the reader what the table is for. The element is placed immediately after the tag. Example Figure 1 – 2004 Profit

Cell Alignment Attributes You can align individual cells in order to make your table more readable. Defaults Headings - centered, vertically and horizontally Cells and - centered vertically, left-aligned horizontally

Cell align Attributes To change the default horizontal alignment of a cell use the align=“alignment” attribute with the, or tags. Where alignment is either “left”, “right” or “center”.

Cell valign Attributes Another attribute, valign=“alignment” allows you to control vertical alignment of cells. Valid values for alignment are “top”, “middle”, and “bottom”.

align and valign values

Table colors You can also use style sheets to control table colors You can change colors for the entire table, or for a given row, or even a single cell using CSS.

Table colors Use an internal (embedded) style to change all tables Example: table {background-color:blue; color: white; } th {background-color:gold; color: navy; } caption {color: navy; } (cellspacing=“0”)

Table colors Use an inline style (the style attribute) to change one particular cell. Example: Cell 4

Empty Cell A element that has no content will not display correctly Use as the content

Table Summary - the start and end of a table - the start and end of a row in the table - a heading box on the table - a data cell in a table row - a description for your table

Attributes for border cellpadding cellspacing width align valign

Assignment #1 Create a calendar page for the month you were born – use caption for the month. Use styles for color. Add some text Add an image on your birthday To align the days to the top of the calendar, use. To keep a border on a blank cell, use for the text. (no breaking space)

Spanning Rows & Columns A basic table contains cells of data arranged in columns and rows. Sometimes the contents of a cell apply to more than one row or column. You can mark a single cell to be part of multiple rows or columns – known as spanning.

Spanning Rows & Columns Spanning is done by using the rowspan or colspan attributes in the or tags. Examples The number indicates the number of rows or columns to span

rowspan Span Span

colspan Span Span

Spanning Rows & Columns

Let’s create the following:

Set up the table: Spanning columns and rows Race Results

First row Runner needs to span 2 cols Runner Time Origin

Second row Men spans 3 rows Men 1. Peter Teagan 2:12:34 San Antonio, Texas

Rows 2 and 3 2. Kyle Wills 2:13:05 Billings, Montana 3. Jason Wu 2:14:28 Cutler, Colorado

Complete the table

Assignment #2 Reproduce a TV programming schedule for one week.