Using HTML to Create Tables in Web pages Connie Lindsey November 2005.

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.
Chapter 3 – Web Design Tables & Page Layout
Web Page Design Using Tables Here you see three examples of how tables can be used to organize your content. We call this page layout or design. You can.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Internet Basics & Way Beyond!
Working with Web Tables
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Working with Tables for Page Design – Lesson 41 Working with Tables for Page Design Lesson 4.
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
Chapter 3 Tables and Page Layout
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
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.
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.
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.
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.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit F Working with Tables.
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.
Web Technologies Website Development Trade & Industrial Education
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
Website Development with Dreamweaver
HTML: Tables & Frames Internet Technology1. HTML: Tables Table tags ► surround the entire table ► header row (text is boldfaced) ► surround each row ►
Adobe Dreamweaver CS3 Revealed CHAPTER FIVE: USING HTML TABLES TO LAY OUT A PAGE.
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
Chapter 5 Quick Links Slide 2 Performance Objectives Understanding Framesets and Frames Creating Framesets and Frames Selecting Framesets and Frames Using.
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.
Kevin Murphy Introduction to Tables Masters Project CS 490.
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:
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.
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.
1 Chapter 04: Working with Table By Tharith Sriv.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
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.
REEM ALMOTIRI Information Technology Department Majmaah University.
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.
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.
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.
Laying out Elements with CSS
LAB Work 02 MBA 61062: E-Commerce
H T M L A B E S X P I N D.
TABLES.
DREAMWEAVER MX 2004 Chapter 3 Working with Tables
HTML Tables & Frames Internet Technology.
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.
HTML Tables & Frames Internet Technology.
Presentation transcript:

Using HTML to Create Tables in Web pages Connie Lindsey November 2005

HTML Tables Most people realize that tables are used in documents to display data, but HTML tables serve several purposes. Tables used in Web pages allow designers to create impressive layouts with multiple columns and sidebars. An HTML table is made up of rows of cells. HTML Tables can be attention-getting or invisible.

Screen Shot of Page without Table

Screen Shot of Same Page with Table

Basic Table Codes begins the table and finishes the table. defines the beginning of a table row and completes the row. defines the beginning of a cell and completes the cell.

Setting Table Width By default, browsers determine the width of a cell or table by looking at what it contains. Specifying table width allows the browser to display the table more quickly. Width can be set for exact number of pixels or a percent of browser.

Setting Table Width To set the table width, type width=“n” inside the table tag,where n is the desired number of pixels. Type width=“n%” to set the percent of the browser window that the table should occupy. No browser will make a table narrower than its contents; the browser will stretch the table to fit the contents.

Setting Table Height By default, browsers will determine table height based on the contents of the table. To specify a height, type height=“n” or height=“n%”. If the contents cannot be displayed in the given height, the browser will enlarge the table to fit the contents.

Horizontal Alignment Center the table by typing align= “center” inside the table tag. The command align= “left” positions the table on the left side of the browser window. (Default alignment is left.) The command align= “right” positions the table on the right side of the browser window.

Vertical Alignment To set the vertical alignment of the table, type valign=“direction” inside the table tag. Possible directions include top, middle, bottom, baseline.* The default for vertical alignment is middle. * Baseline is the same as top when there are several lines of print and no images. Baseline is the same as bottom when when both text and images are present.

Table Borders Layout table borders can be set to zero pixels so that they are invisible. Borders can be used to call attention to information or images by varying border color and thickness.

HTML Border Attributes To make layout tables invisible, set border to zero pixels by typing inside the table tag. The default value for a border is one pixel. To create a larger border, increase the pixel number by typing inside the table tag. Click to view example

Controlling Cell Appearance Cell spacing adds space between cells. In the table tag, type cellspace=“n” where n is the number of pixels to appear between one cell border and the next. The default for cell spacing is two pixels.

Controlling Cell Appearance Cell padding adds space between a cell’s contents and its border. In the table tag, type cellpadding=“n” where n is the number of pixels to appear between the contents and the border. The default for cell padding is one pixel.

Formatting Table Background To change the background color, type bgcolor= “color name” inside the table tag. (Individual cell background color can also be changed by typing the command in the cell tag.) Example : align="center" Click to view example of table with background color set to red.

Formatting Table Background To add a background image, type background= “image.url” inside the table tag. Example: (Note that some browsers may display the image into each cell individually instead of filling the entire table with a single image.) Click to view example of a table centered with background image

Column Spanning In multi-column table, it is possible for a row to span several columns. Type where n is the number of columns for the row to span. Type cell contents and then type.

Row Spanning A cell can vertically span multiple rows to create a sidebar. Type where n is the number of rows the cell should span. Type the cell contents and then type.

Sources Castro, E. (2003). HTML for the World Wide Web, 5 th edition. Berkley, CA: Peachpit Press. Schluter, R. (1999). HTML tag list. Retrieved Nov. 14, 2005, from So, you want a table, huh? Retrieved Nov. 14, 2005, from tutorials/tables/article.php/

Thanks for watching! Please click on button to return to first slide

HTML Table with Its Border Set to Zero Pixels Return

HTML Table with Its Border Set to 10 Pixels Return

Table with Background Color Return

Table with Background Image Return