Tables Learn to create and enhance TABLES using a variety of attributes and formats.

Slides:



Advertisements
Similar presentations
HTML TABLES EXPLAINED. What is a TABLE? The HTML table allows web designers to arrange & organize data -- text, images, hyperlinks, forms, form fields,
Advertisements

Using HTML Tables Presenting Information & Layout Control.
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.
Creating Tables in a Web Site
 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
CIS101 Introduction to Computing Week 07. Agenda Your questions JavaScript text Resume project HTML Project Three This week online Next class.
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.
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.
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.
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.
Lesson 6. Links in HTML Computer Science Welcome to Virtual University in Pakistanhttp://
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.
HTML Comprehensive Concepts and Techniques Second Edition Creating Tables in a Web Site October 23, 2012.
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.
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.
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.
Tables Module 2: HTML Basics LESSON Extension. Module 2: HTML Basics LESSON Extension Lesson Overview In this lesson, you will learn to:  Create tables.
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.
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:
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.
Basic Table Elements. 2 Objectives Define table elements Describe the steps used to plan, design, and code a table Create a borderless table with text.
 2003 Prentice Hall, Inc. All rights reserved. Introduction to HTML: Tables Outline 1 Introduction 2 Basic HTML Tables 3 Intermediate HTML Tables and.
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.
Creating Tables in a Web Site HTML 4 Created by S. Cox.
©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.
TABLES IN HTML No, not that kind of table!! THIS KIND!!
Tables: Basic Elements Header 1Header 2Header 3 Row 1, Column 1Row 1, Column 2Row 1, Column 3 Row 2, Column 1Row 2, Column 2Row 2, Column 3 Row 3, Column.
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.
1 R3 R1 R5 R4 R6 R2 B B A A Looking at the Code Under the View menu Select Source.
CIS101 Introduction to Computing Week 07 Spring 2004.
Working with Tables: Module A: Table Basics
LAB Work 02 MBA 61062: E-Commerce
Introduction to HTML.
H T M L A B E S X P I N D.
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
Web Design and Development
HTML Tables & Frames Internet Technology.
H T M L A B E S X P I N D.
Site Development Foundations Lesson 6
Lesson 5: HTML Tables.
H T M L A B E S X P I N D.
HTML Tables & Frames Internet Technology.
Presentation transcript:

Tables Learn to create and enhance TABLES using a variety of attributes and formats.

TABLES Tables allow you to POSITION elements on a web page.

Tables Tables make web pages look more organized and professional.

The borderless TABLE Creates a BANNER into which you can insert TEXT.

TABLE ELEMENTS Tables consist of ROWS and COLUMNS and CELLS.

Rows A Row is a horizontal line of information. First Name Last Name Address CityState

A Column A Column is a vertical line of information

Cell A CELL is the inter section of a row and column.

Building Tables Cells have TWO VARIATIONS: –Headings and DATA

Heading Cells Heading Cells display BIG and Black and BOLD First Name Last Name Address CityState

Data Cells Data Cells display little and plain and normal. BonnieMills300 Bell St. LACA

OTHER Parts of a TABLE Table Border Table Header Table Captions

Table Borders Table Borders are lines that go around the perimeter of a table.

Table Headers Table Headers are BOLD TEXT that indicate the purpose of the ROWS and Columns. CityState

A Table Caption A Table Caption is text that describes the purpose of a table. CitySTATE Harbor CityCA This table needs something else... Color !

Planning, designing and coding Creating Tables is a THREE step process 1.Planning 2.Designing 3.Coding

Planning Do you REALLY need a table? If you can explain the Web Page using ONLY paragraphs and Bulleted lists. You dont need a table.

A Table is appropriate when You need to organize data so that it is easier for the reader to understand. The TABLE gives the web page a more professional look and More clearly explains the topic.

PLANNING the table Begin with a good design Sketch out on paper before writing the HTML code. 5k race10K race Time

The Big Race How many rows? How many columns? Name1Name2Name3Name4 Time

5K10K Name1 Time

Coding the Table What are tables used for? Tables are used to make data easier to interpret or to just give your document more impact.

Start the TABLE Tables are one of the most challenging things to code with HTML. Tables start with the tag, and usually contain the border=n attribute within the opening tag.

Invisible borders If the border=0, than the table's border is invisible. Usually when you do not use the border attribute the table border will become invisible.

Invisible borders This is useful when you want to align text in rows and columns, but don't want a table border around it. border=1 is a thin border. border=2 is a little thicker, border=3 a little more thick.. and so on.

Example of tables with borders... This table has a border of 0. This table has a border of 0. This table has a border of 3. This table has a border of 3.

Each Row is defined Each row within the table is defined by the opening tag and the optional closing tag.

Within each row…table cells Within each table row are table cells, which are defined by the opening and closing tags. Most table rows contain more than one cell.

Heading Tags Many times, you will need a heading for a column of cells of the first row. To do this, you will use the opening and closing tag.

Heading Tags The table heading tag makes the text in that cell BOLD and CENTERED. You only need use the heading cells when necessary.

Heading A Heading B Heading C Cell A Cell B Cell C Cell D Cell E Cell F

Example of Multiple Rows and Columns Heading AHeading BHeading C Cell ACell BCell C Cell DCell ECell F

ROWSPAN=2 Heading A Heading B Heading C Cell A & D Cell B Cell C Cell E Cell F

ROWSPAN Notice how the rowspan=2 attribute was added. This allows that cell to span two rows.

colspan=n If you want a cell to span more than 1 column, use the colspan=n attribute.

The ALIGN attribute you may wish to use the ALIGN and VALIGN attributes to align the contents of cells. ALIGN=LEFT, ALIGN=CENTER or ALIGN=RIGHT

Vertical Allignment If you wish to change the vertical alignment of the contents of a cell, VALIGN=TOP, VALIGN=MIDDLE, or VALIGN=BOTTOM attributes.

Width Attribute You may also want to try out the WIDTH=n% attribute, to change the width of a table or a cell.

Left Alignment Center Alignment Right Alignment

Title goes here Body goes here Headings are kewl! Tables give impact!

Coding the Table Indicates the beginning and end of the table. All other tags go within these tags.

Here comes a ROW !! Indicates the beginning and end of a table ROW Rows consist of headings or data cells

T able H eading Cell Indicates the beginning and end of a t able h eading cell. Heading cells default to Bold and center alignment. Heading Cells have macho ATTITUDE !!

T able D ata Indicates the beginning and end of a t able d ata cell. Data cells default to normal text with left alignment. Data cells are normal and ordinary.

Table ATTRIBUTES ALIGN (LEFT, RIGHT, CENTER) BGCOLOR BORDER CELLSPACING(between cells) CELLPADDING(within cells) COLS WIDTH (relative to window width)

Table Row Attributes ALIGN (LEFT, CENTER, RIGHT) BGCOLOR VALIGN (TOP, MIDDLE, BOTTOM)

Table Header Attributes and ALIGN (LEFT, CENTER, RIGHT, JUSTIFY) BGCOLOR COLSPAN (sets number of columns spanned by cell) ROWSPAN (sets number of columns spanned by cell) VALIGN (vertically aligns cell) –(TOP, MIDDLE, BOTTOM)