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.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
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
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
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.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
XP 1 Designing a Web Page with Tables Tutorial 4 Creating a News Page.
Cos 125 Day 24. Agenda All students meeting 7 Pm Monday, April 19 UMS Strategic Plan Assignment #7 Posted Due April 20 Two (one?) more to go Quiz Four.
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
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.
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. Goals How to use the Komodo editor HTML coding and testing Basic HTML tags List and Images Tables and Links At least 2 pages and navigation
Chapter 6 Working with Frames.
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.
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.
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.
Internet Skills An Introduction to HTML Alan Noble Room 504 Tel: (44562 internal)
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.
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
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.
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.
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.
COS 125 DAY 14. Agenda  Assignment 6 DUE  Assignment 7 Posted Due March 9:35 AM  Quiz 2 will be on March 30 Chapters M/C and 4 Short.
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.
REEM ALMOTIRI Information Technology Department Majmaah University.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
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.
Designing a Web Page with Tables
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
Working with Tables: Module A: Table Basics
LAB Work 02 MBA 61062: E-Commerce
HTML Tables.
Introduction to HTML.
Табеле Табеле се представљају елементом TABLE.
Using HTML Tables SWBAT: - create tables using HTML
For the World Wide Web Styling Tables with CSS
Site Development Foundations Lesson 6
Lesson 5: HTML Tables.
Presentation transcript:

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 Create Newspaper-Style Columns Create Side Navigation Add a Table Caption Control which Borders to Display Adjust the Table Size Change Cell Alignment Extend Cells across Columns and Rows Create Column and Row Groups Add a Background Color to Cells Add a Background Color to a Table Insert an Image in a Cell Insert a Background Image Change Table Alignment Control Text Wrapping in Cells Nest a Table within a Table

Why Tables HTML tables enable you to effectively present large amounts of data in rows and columns. You can also use tables to organize the overall structure of a Web page. For example, you can create a two-column table that organizes a list of navigational links in one column and the main text and image content in another.

Tables properties

Add Table The tag defines an HTML table. An HTML table consists of the element and one or more,, and elements. The element defines a table row, the element defines a table header, and the element defines a table cell. A more complex HTML table may also include,,,,, and elements.

Example of Table Month Savings January $100

Table Attributes AttributeValueDescription align left center right Not supported in HTML5. Deprecated in HTML Specifies the alignment of a table according to surrounding text bgcolor rgb(x,x,x) #xxxxxx colorname Not supported in HTML5. Deprecated in HTML Specifies the background color for a table border 1 "" Specifies whether the table cells should have borders or not cellpaddingpixels Not supported in HTML5. Specifies the space between the cell wall and the cell content cellspacingpixelsNot supported in HTML5. Specifies the space between cells frame void above below hsides lhs rhs vsides box border Not supported in HTML5. Specifies which parts of the outside borders that should be visible rules none groups rows cols all Not supported in HTML5. Specifies which parts of the inside borders that should be visible summarytextNot supported in HTML5. Specifies a summary of the content of a table width pixels % Not supported in HTML5. Specifies the width of a table

Rows Attributes AttributeValueDescription align right left center justify char Not supported in HTML5. Aligns the content in a table row bgcolor rgb(x,x,x) #xxxxxx colorname Not supported in HTML5. Deprecated in HTML Specifies a background color for a table row charcharacter Not supported in HTML5. Aligns the content in a table row to a character charoffnumber Not supported in HTML5. Sets the number of characters the content will be aligned from the character specified by the char attribute valign top middle bottom baseline Not supported

Cells Attributes AttributeValueDescription align left right center justify char Aligns the content in a cell bgcolor rgb(x,x,x) #xxxxxx colorname Specifies the background color of a cell colspannumberSpecifies the number of columns a cell should span headersheader_idSpecifies one or more header cells a cell is related to height pixels % Sets the height of a cell nowrap Specifies that the content inside a cell should not wrap rowspannumberSets the number of rows a cell should span scope col colgroup row rowgroup Defines a way to associate header cells and data cells in a table valign top middle bottom baseline Vertical aligns the content in a cell width pixels % Specifies the width of a cell

Create Newspaper-Style Columns Within the and tags, type to start the first column of text. to create a basic table. You can optionally specify a WIDTH attribute to constrain a column’s width. Type your column text. Type at the end of the text. Repeat the previous steps to add more columns and text. The Web browser displays the text as columns on the page.

Create Side Navigation Start your table by typing and tags. Type, replacing ? With the pixel value or percentage value you want to assign for the navigation column. Type your navigation links. You can use the tag to put links on different lines. Type at the end of the link text. Type, replacing ? With the pixel value or percentage value you want to assign for the main content column. Type your main content. Type,, and then to close the table. When the table displays in a browser, the links appear to the left of the main content.

Add a Table Caption Add a new line directly below the tag. Type. To place the caption below the table, type ALIGN=”bottom” within the tag. Type the caption text. Type at the end of the caption text. The Web browser displays the caption above or below the table.

Extend Cells across Columns and Rows Click inside the tag for the cell you want to extend across columns. Type COLSPAN=”?”, replacing ? with the number of columns you want to span. The Web browser displays the cell spanning the designated number of columns. In this example, a heading column spans the top of the table.

Create Column Groups The tag specifies a group of one or more columns in a table for formatting. The tag is useful for applying styles to entire columns, instead of repeating the styles for each cell, for each row. Note: The tag must be a child of a element, after any elements and before any,,, and elements. Tip: To define different properties to a column within a, use the tag within the tag.

Example of COLGROUP ISBN Title Price My first HTML $53

Scope Attribute The scope attribute defines a way to associate header cells and data cells in a table. The scope attribute identifies whether a cell is a header for a column, row, or group of columns or rows. Example: ValueDescription colSpecifies that the cell is a header for a column rowSpecifies that the cell is a header for a row colgroupSpecifies that the cell is a header for a group of columns rowgroupSpecifies that the cell is a header for a group of rows

Example of Scope Month Savings 1 January $100 2 February $80

Control Text Wrapping in Cells Click inside the cell tag for the text you want to control and type NOWRAP. To specify where a line breaks, type. You can also use the tag to control line breaks in a cell. The Web browser displays the text without breaking the line.

Lab 5 Add a Table Assign a Table Border Adjust Cell Padding and Spacing Adjust Cell Width and Height Add Column Labels Create Newspaper-Style Columns Create Side Navigation Add a Table Caption Control which Borders to Display Adjust the Table Size Change Cell Alignment Extend Cells across Columns and Rows Create Column and Row Groups Add a Background Color to Cells Add a Background Color to a Table Insert an Image in a Cell Insert a Background Image Change Table Alignment Control Text Wrapping in Cells Nest a Table within a Table