1 Tables: Data in Rows and Columns – What is Table? – How Tables are Used? – Designing Tables – Table, Cell, Row Attributes – Using Tables for Alignment.

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.
HTML Tables Introduction to Tables Introduction to Tables Table Format Table Format Table Captions Table Captions Table Example Table Example Excercise.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Internet Basics & Way Beyond!
Creating Tables Text Tables -created by using preformatted tags. Graphical Tables - created using Table Structure with HTML.
New Perspectives on Creating Web Pages with HTML
Tutorial 4: Designing a Web Page with Tables
Cos 125 Day 22. Agenda Assignment 6 Not corrected Waiting for tune-ins Assignment 7 is posted Assignment 7 Due April 2PM Left to do 1 Assignments.
© 2004, Robert K. Moniot Chapters 4 & 5 Introduction to HTML, More Details.
XP 1 Designing a Web Page with Tables Tutorial 4 Creating a News Page.
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
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.
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.
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.
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.
Tables Learning Web Design: Chapter 8. Overview of Tables Uses for tables How to create a table Using CSS to style a table Nested tables Advanced table.
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.
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
Tutorial 5 Working with Tables and Columns
XP Creating Web Pages with HTML, 3e Prepared by: C. Hueckstaedt, Tutorial 4 1 New Perspectives on Creating Web Pages with HTML Tutorial 4: Designing a.
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.
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.
Tables in HTML. Table Tag HTML tables always begin and end with a table tag. Syntax:
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.
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.
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.
LINKING WEBPAGES USING HTML HYPERLINKS. Hyperlinks are text strings or images on a webpage which when clicked on, links to another section in the same.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
Designing a Web Page with Tables
CNIT 131 HTML5 - Tables.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
Working with Tables: Module A: Table Basics
>> HTML: Tables.
LAB Work 02 MBA 61062: E-Commerce
HTML Tables.
Tutorial 5 Working with Tables and Columns
Introduction to HTML.
Creating Tables Steps for creating a Table Important Facts about Table
New Perspectives on Creating Web Pages with HTML
Табеле Табеле се представљају елементом TABLE.
Creating Tables Steps for creating a Table Important Facts about Table
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
Web Development & Design Foundations with H T M L 5
Site Development Foundations Lesson 6
Creating Tables Steps for creating a Table Important Facts about Table
Lesson 5: HTML Tables.
Presentation transcript:

1 Tables: Data in Rows and Columns – What is Table? – How Tables are Used? – Designing Tables – Table, Cell, Row Attributes – Using Tables for Alignment – When Tables Go Wrong?

2 Objectives – Insert a table into an HTML document – Manipulate the style, color, and width of a table’s border – Set the size of a table’s margin, cell spacing, and cell padding – Change a table’s width within the browser pane and cell width within the table – Use background colors within a table – Float text to the right or left of a table – Place captions above and below a table – Using Tables for Alignment – When Tables Go Wrong?

3 What is Table? Tables consist of horizontal rows and vertical columns which can be formatted according to your needs. The intersection of a row and a column is called a cell. HTML cells contain either data, numbers, text, an image -or header information describing the data in a column or row. ROW CLUMNCLUMN

4 How Tables are Used? Organize information in a row and column format (Present tabular information) Present any type of information for which you want a lot of control over the positioning the material (Newspaper-like appearance; Control Layout)

5 Table Containers....  encloses the table  defines the table headers  defines the table rows  surrounds the actual table data...  allows you to place a caption either above or below the table. The latest HTML specifications added five new table tags that let you format table columns and format and scroll portions of long tables.... (*)  identifies a scrollable area of a table..... (*)  appears above the scrolling body (*)  appears belove the scrolling body.. (*)  provides means for combining a group of columns in a table (*)  allows you to control the appearance or attribute specifications for one or more tables

6 Designing Tables Row 1, Column 1 Row 1, Column 2 Row 2, Column 1 Row 2, Column 2 1. For each ROW, begin with, end with 2. For each CELL in a Row, begin with, end with 3. No problem if you have 1 ROW, many CELLS. 4. When you have more than 1 ROWS, might be a Problem. Why? Because, number of CELLS must be SAME at each ROW. Rule of MATRIX. Cell 1(R1C1)Cell 2 (R1C2) Cell 3 (R2C1)Cell 4 (R2C2) Cell 1 : Row 1, Column 1 Cell 2 : Row 1, Column 2 Cell 3 : Row 2, Column 1 Cell 4 : Row 2, Column 2

7 Table, Row, Cell Attributes < Table width= "100%“ (you may use percentage of window or pixel ) height= “5" cellspacing= "3" cellpadding= "3" border= "2" bordercolor= "#008000" background= "bilkent.gif" bgcolor= "#C0C0C0“ align= "right" rules(*)= “row”  controls the border around individual cell (none: just outside, column: just columns) frame(*)= “border”  which sides of a table’s border are visible [box, void, above, below, hsides, vsides, lhs (left hand side), rhs.] >

8 Table, Row, Cell Attributes < tr width= "100%“ (you may use percentage of window or pixel ) height= “5" border= "2" bordercolor= "#008000" background= "bilkent.gif" bgcolor= "#C0C0C0“ align= "right" valign= “right” > < td width= "100%“ (you may use percentage of window or pixel ) height= “8" border= "2" bordercolor= "#008000" background= "bilkent.gif" bgcolor= "#C0C0C0“ align= "right" valign= “right” >

9 Using Tables for Alignment Q1. Assume that write the name of the lecture on Left alignment. write the date on Right alignment. BOTH must be on the same LINE. Once you give an ALIGMENT property to a line, it will set the whole LINE’s property. So, you need to GIVE 2 different ALIGNMENT PROPERTY at 1 LINE. Using TABLES is the best way to solve this Problem. Lecture Lecture

10 Using Tables for Alignment Q2. Assume that insert an image named bilkent.gif. write the date near the image. They must be vertically CENTERED as shown in the figure. Once you insert an image, write a text after it, the text’s bottom will be same level as image’s one. But, you want it to be centered. Using TABLES is the best way to solve this Problem

11 When Tables Go Wrong? If you don’t CLOSE your Table TAGS; table, tr, td Assume that you want to build a table, with 2 rows, and 3 columns. The browser will understand this table’s dimensions by TAGS, so they must be defined correctly If the CELL numbers are not equal at each ROW. If you create a COLUMN, it must be valid for each ROW. ?? Is there any way to OMIT, MERGE cells ?? YES, you should merge cells by using COLSPAN and ROWSPAN tag attributes. However, you don’t need to use them with non-authoring tools.