Week 6 Creating Tables using HTML.

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

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.
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.
CIS101 Introduction to Computing Week 07. Agenda Your questions Resume project Review Project Two HTML Project Three This week online Next class.
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.
Lists and Tables Cool sites Lists unordered, ordered, definition Tables basic.
Introduction to HTML II Shih-Heng Chin. Preface Structure of a HTML File Elements used frequently Tables.
1 Tables: Data in Rows and Columns – What is Table? – How Tables are Used? – Designing Tables – Table, Cell, Row Attributes – Using Tables for Alignment.
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.
Images and Tables. Displaying Image Attributes: SRC= " mypic.gif " – Name of the picture file SRC= " pic/mygif.jpg " – Name of file found in pic directory.
What is a TABLE? The HTML table allows web designers to arrange & organize data -- text, images, hyperlinks, forms, form fields, other tables, etc. Tables.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
Lesson 6. Links in HTML Computer Science Welcome to Virtual University in Pakistanhttp://
Tables in HTML Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
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.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit F Working with Tables.
Tables Teppo Räisänen LIIKE/OAMK The Role of a Table Tables are quite common in computing systems In XHTML tables are used for presenting tabular.
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
HTML Overview Part 4 – Tables 1. HTML Tables  Tables are defined with the tag pair.  A table is divided into rows with tag pairs. o tr stands for "table.
>> 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.
HTML B OOT C AMP Chapter 10 Tables Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved.
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
A table is a rectangular arrangement of rows and columns on your screen A table is used to organize data into rows and columns and also increasingly.
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 Web Authoring. This kind of a table THISIs aTABLE THISIs aTABLE THISIs aTABLE THISIs aTABLE.
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.
 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.
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.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
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.
1 R3 R1 R5 R4 R6 R2 B B A A Looking at the Code Under the View menu Select Source.
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.
HTML Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
CIS101 Introduction to Computing Week 07 Spring 2004.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
H T M L A B E S X P I N D.
>> HTML: Tables.
LAB Work 02 MBA 61062: E-Commerce
HTML Tables CS 1150 Spring 2017.
HTML Tables.
Programming the Web using XHTML and JavaScript
Introduction to HTML.
H T M L A B E S X P I N D.
TABLES.
Creating Tables Steps for creating a Table Important Facts about Table
Creating Tables Steps for creating a Table Important Facts about Table
TABLES.
TABLES IN HTML No, not that kind of table!! THIS KIND!!
Web Design and Development
Creating Tables in HTML
Creating Tables in a Web Site
Creating Tables in HTML
COMS 161 Introduction to Computing
H T M L A B E S X P I N D.
Site Development Foundations Lesson 6
Basic HTML.
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
Presentation transcript:

Week 6 Creating Tables using HTML

Creating Tables using HTML <head> <title>Creating Tables</title> </head> <body> <table border=“10” bgcolor=“red”> <tr colspan=“2”> <td>&nbsp></td></tr> </body> </html>

Creating Tables using HTML An HTML table allows you to arrange data into rows & columns of cells. text, images, links, forms, form fields, other tables, etc.

A B C D E F G H I J K L M N O P Q R S T U V W X

A B C D E F G H I J K L M N O P Q R S T U V W X

A&B A C D E F G H I J K L M N O P Q R S T U V W X

A,B,G,H, M,N,S,T A C D E F G H I J K L M N O P Q R S T U V W X

A,B,G,H, M,N,S,T A C D E F G H I J K L M N O P & Q P R S T U V W X

A,B,G,H, M,N,S,T A C D E F G H I J K L M N O P & Q P R S T U V W X

A,B,G,H, M,N,S,T C D E F I J K L O P & Q R U V W X

Structure of an HTML Table

Columns

Rows

Cells Cells Cells Cells Cells Cells Cells Cells Cells Cells Cells Cells Cells Cells Cells Cells Cells Cells Cells Cells Cells Cells Cells Cells

Border

Caption

Table header

Control width of each column

Control Height of each Row

Border

Border

Border

Border 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Column span A A&B C D E F G H I J K L M N O P Q R S T U V W X

Column span A A&B C D E F G H I J K L M N O P Q R S T Column span

Row span A B C D E F G H I K L M N O Q R S T U W X

Row span A B C D E F G H I K L M N O Q S T U W X Row span

Row and Column span A B C C D E F G I H I M N O Q L S T U V W X

Pop Quiz ------- How many Columns? How many Rows? B C D E F G H I J R L M K N O P P Q

Answer = 6 Columns A B C D E F G H I J R L M K N O P P Q

Answer = 4 Rows A B C D E F G H I J R L M K N O P P Q

Answer = 6 Columns and 4 Rows B C D E F G H I J R L M K N O P P Q

Pop Quiz # 2 How many Columns? How many Rows? A B C D E G H I J R M K N O P P Q S

Answer: Columns = 6 Rows = 5 Pop Quiz # 2 How many Columns? How many Rows? A B C D E G H I J R M K N O P P Q S

Table 1 Table 2

Table 1 Table 2 Table 3

Table 1 Table 2 Table #2 is inside Table#1

Show me how !!

Table Tags Opening Tag Closing Tag Tag to create the Table: Tag to create Caption: Optional Tag to create each Row: Tag to create Header Row: Optional Tag to create each Cell:

Table Tags Required In EVERY Table Opening Tag Closing Tag Tag to create the Table: Tag to create Caption: Tag to create each Row: Tag to create Header Row: Tag to create each Cell:

Table Tags Opening Tag Closing Tag Tag to create the Table: Tag to create Caption: <CAPTION> </CAPTION> Tag to create each Row: <TR> </TR> Tag to create Header Row: <TH> </TH> Tag to create each Cell: <TD> </TD>

Table Tags Nested Opening Tag Closing Tag Tag to create the Table: <TR> </TR> <TD> </TD> <CAPTION> </CAPTION> <TH> </TH> Tag to create Caption: Tag to create each Row: Nested Tag to create Header Row: Tag to create each Cell:

<title>table one</title> </head> <body> X O <html> <head> <title>table one</title> </head> <body> </body> </html>

X O <table> </table>

X O <table> <tr> </tr> </table>

<tr> </tr> <tr> </tr> <table> X O <table> <tr> </tr> <tr> </tr> </table>

<tr> </tr> <tr> </tr> <tr> </tr> X O <table> <tr> </tr> <tr> </tr> <tr> </tr> </table>

<tr> <td> </td> </tr> <table> X O <table> <tr> <td> </td> </tr> </table>

<tr> <td>X </td> </tr> <table> O <table> <tr> <td>X </td> </tr> </table>

<tr> <td>X </td> </tr> <table> O <table> <tr> <td>X </td> </tr> </table>

<td>X </td> <td>O</td> <table> <tr> <td>X </td> <td>O</td> </tr> </table>

<td>X</td> <td>O</td> <td>X</td> <table> <tr> <td>X</td> <td>O</td> <td>X</td> </tr> </table>

<td>X</td> <td>O</td> <td>X</td> <table> <tr> O X X <td>X</td> <td>O</td> <td>X</td> O O X </tr> </table>

X O X 1 Row 1 O X X 2 O O X 3 Row 2 Row 3 <tr> <table> 1 <tr> <td>X</td> </tr> <td>O</td> Row 1 O X X 2 <tr> <td>O</td> </tr> <td>X</td> O O X 3 Row 2 <tr> <td>O</td> </tr> <td>X</td> Row 3 </table>

<table border= “1”> X O X <table> <table border= “1”> <tr> <td>X</td> </tr> <td>O</td> O X X <tr> <td>O</td> </tr> <td>X</td> O O X <tr> <td>O</td> </tr> <td>X</td> </table>

<table border= “2”> X O X <table border= “2”> <tr> <td>X</td> </tr> <td>O</td> O X X <tr> <td>O</td> </tr> <td>X</td> O O X <tr> <td>O</td> </tr> <td>X</td> </table>

<table border= “3”> X O X <table border= “3”> <tr> <td>X</td> </tr> <td>O</td> O X X <tr> <td>O</td> </tr> <td>X</td> O O X <tr> <td>O</td> </tr> <td>X</td> </table>

? <table border= “0”> X O <tr> <td>X</td> <td>O</td> <tr> <td>O</td> </tr> <td>X</td> <tr> <td>O</td> </tr> <td>X</td> </table>

<td align=“center”>X</td> O <td align=“center”>X</td>

<td align=“right”>X</td> O <td align=“right”>X</td>

align=“right”, “left”, “center” X O valign=“middle” valign=“bottom” valign=“top”

<table border=“1”> <tr> <td align=“center”>X</td> <td align=“center”>O</td> </tr> </table> X O

It’s YOUR Turn !

Using “ Notepad ” Create this table X O Title = “Table One” File name = “table1.html”

????? X O

Additional Table Options Width = “pixels” or “%” <html> <head> <title>Table One</title> </head> <table border=“1”> <tr> <td align=“center”>X</td> <td align=“center”>O</td> </tr> </table> </body> </html> Additional Table Options Width = “pixels” or “%” Height= “pixels” or “%” Cellpadding = “default 3” Cellspacing = “default 3” Bgcolor = “#RRGGBB” Bordercolor = “#RRGGBB” Align=“Left/Right/Center” <table border=“1” width=“100%” cellpadding=“3” cellspacing=“3” bgcolor=“#FFFFFF” align=“center”>

X O Cellpadding = “40” Bgcolor =“#00EEEE”

Two Web sites we looked at in week one

Font size = “5” Body bgcolor= "#ecdd99"

TABLE 1 - column 1 - row TABLE 4 - columns 1 - row

table border=“5” Align = “center” cellpadding=“15” 1 row 1 column table border="5" 1 row 4 columns

table border=“5” Align = “center” cellpadding=“15” 1 row 1 column table border="5" 1 row 4 columns

Row 1 Colspan = 4 Row 2 Colspan = 4 Row 3 Column 1 Column 2 Column 3 Column 4 Colspan = 4 Row 4

Row 1 Colspan = 4 Row 2 Colspan = 4 Row 3 Column 1 Column 2 Column 3 Column 4 Colspan = 4 Row 4

X O

X O O O X X

X O <html> <head> <title>Table One</title> <table border=“1”> <tr> <td align=“center”>X</td> <td align=“center”>O</td> </tr> </table> </body> </html> X O

X O <html> <head> <title>Table One</title> <table border=“1”> <tr> <td align=“center”>X</td> <td align=“center”>O</td> </tr> </table> </body> </html> X O <td colspan=“3”> O </td>