Introducing Web Tables

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.
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.
Internet Basics & Way Beyond!
Working with Web Tables
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 New Perspectives on Creating Web Pages with HTML Tutorial 4: Designing a Web Page with Tables.
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.
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.
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.
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.
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.
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.
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
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:
Tables Module 2: HTML Basics LESSON Extension. Module 2: HTML Basics LESSON Extension Lesson Overview In this lesson, you will learn to:  Create tables.
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.
HTML: Tables & Frames Internet Technology.
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.
1 HTML tables
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.
Tables in HTML. Table Tag HTML tables always begin and end with a table tag. Syntax:
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.
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.
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.
Web111a_chapt04.ppt HTM: Section 4 Tables Table Types Text table elements Easy to use Use fixed-font text (font family monospace) Andale Mono Courier Monaco.
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.
Tutorial 5 Working with Web Tables
Designing a Web Page with Tables
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
LAB Work 02 MBA 61062: E-Commerce
Tutorial 5 Working with Tables and Columns
H T M L A B E S X P I N D.
Tutorial 5 Working with Web Tables
Табеле Табеле се представљају елементом TABLE.
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
H T M L A B E S X P I N D.
Lesson 5: HTML Tables.
H T M L A B E S X P I N D.
Presentation transcript:

Introducing Web Tables

Tabulating items Adv. of Tables: Better readability More flexibility More efficient to explain information than plain text

A snapshot of HTML Table Helps us to layout the html page in a nice format

How to create HTML Tables? What are the questions we need to ask ourselves? What is the tag for that? <table>…</table> What else? A Table must have rows and each of the rows must be divided into cells add a row <tr>…</tr> add a cell (column) <td>…</td> That’s it! Let’s build a simple table then…with 2 rows and 2 cells in each row

Code to create HTML Table <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </table> row 1, cell 1 row 1, cell 2 row 2, cell 1 row 2, cell 2 row 1, cell 1 row 1, cell 2 row 2, cell 1 row 2, cell 2 Sometimes, this looks nice. But sometime, you may need the actual lines

Actual lines = border (attribute) How can I add borders? <table border=“1”> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </table> Width of the borders row 1, cell 1 row 1, cell 2 row 2, cell 1 row 2, cell 2

Simple Exercise #1 Let’s build a simple table with 3 rows and 2 cols.

How about headings in this table? <table border=“1”> <tr> <th>Heading 1</th> <th>Heading 2</th> </tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </table> Heading 1 Heading 2 row 1, cell 1 row 1, cell 2 row 2, cell 1 row 2, cell 2 Tag for heading?? <th> … </th> cell content is made bold and centered

More design of tables fruits apple orange Contact Phone Fax Spanning rows and columns A spanning cell is a single cell that occupies more than one row or one column in the table Attributes COLSPAN: allows a cell span multiple columns ROWSPAN: allows a cell span multiple rows

How to create column span? COLSPAN: allows a cell span multiple columns example <table border=“1”> <tr> <td colspan=“2”> fruits </td> </tr> <td> apple </td> <td> orange </td> </table> <th fruits apple orange </th> fruits apple orange

ROWSPAN ROWSPAN: allows a cell span multiple rows example <table border=“1”> <tr> <th rowspan=“2”> contact </th> <td> phone </td> </tr> <td> fax </td> </table>

Creating a Table caption Caption is a part of Table describing the content of the table in a line

Creating a Table Caption To create a table caption, add the caption element directly below the opening <table> tag with the syntax <caption> content </caption> where content is the content of the table caption you want to display in the webpage

Caption code <caption> … </caption> example <table border=“1”> <caption> My contact info </caption> <tr> <th rowspan=“2”> contact </th> <td> phone </td> </tr> <td> fax </td> </table>

Positioning a Table Caption By default, table captions are placed at the top Change the placement using “align” attribute <caption align =“position”> content </caption> where position can be top / bottom / left / right

Practice Exercise Write html code to create this table: All times listed in central time

Formatting the appearance of HTML Tables…

Formatting Table appearance Cell padding space between the cell contents and the cell border

<table cellpadding="value"> ... </table> To define the padding within table cells, add the attribute <table cellpadding="value"> ... </table> to the table element, where value is the size of the padding space in pixels

Formatting Table appearance (contd.) Cell spacing The amount of space between table cells is known as the cell spacing

<table cellspacing="value"> ... </table> To define the space between table cells, add the attribute <table cellspacing="value"> ... </table> to the table element, where value is the space between table cells in pixels

Width and Height of Table To set the width of the table to a specific value, add the width attribute <table width="value"> ... </table> the height attribute <table height="value"> ... </table>

Formatting Table Borders

Formatting Table Borders with HTML Attributes A table frame specifies which sides of the table (or which sides of the table cells) will have borders <table border ="value" frame ="type"> ... </table> frame values above below border hsides | lhs | rhs vsides void

Formatting Table Borders (contd.)

Formatting internal gridlines A table rule specifies how the internal gridlines are drawn within the table <table border ="value" rules ="type"> ... </table>

Table Border Color The borders can be colored using bordercolor attribute <TABLE BORDER=“10” BORDERCOLOR=“RED”>

Formatting cell content By default, browsers horizontally center the contents of table header cells and left-align the contents of table data cells But what if we want center-alignment of content? Marcia Carol Greg Jan Alice Peter Cindy Mike Bobby

Formatting Tables with HTML Attributes To control the horizontal alignment align="position“ To control the vertical alignment valign="position“ position = top / middle / bottom

Practice Exercise Rest of the table

Activating cells for links <td> <a href="http://google.com">Google Page</a> </td>

Color in a table What if you want to color the table cells? Apply attribute bgcolor=“value” to the <td> tag What if you want to change the text color? <td BGCOLOR=“red"> <FONT COLOR=“blue">Blue Stars</FONT> </td>

Images in cells <td align= "center"> <IMG SRC=“streetsign.jpg“ alt=“logo”> </td>

Implement in class:Table inside a table