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.

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

XP Tutorial 4New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Designing a Web Page with Tables Tutorial 4 Creating a News Page.
Designing Web Pages Tables part one. Using Tables for Page Layout 2.
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything Text Lists Other tables Pictures …
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.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
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.
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.
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.
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.
1 XHTML Tables A table is a matrix of cells, for displaying content in rows and columns The cells can include almost any element Some cells display row.
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.
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.
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.
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
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.
CIS234A Lecture 9 Instructor Greg D’Andrea. Working with Table's Column Groups We've formatted the content of the table columns by modifying the attributes.
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
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
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.
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.
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:
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.
 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.
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.
HTML Tables The HTML table model allows authors to arrange data - text, preformatted text, images, links, forms, form fields, other tables, etc. - into.
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.
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 Working with Web Tables. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Learn and Apply the structure of.
Designing a Web Page with Tables
CNIT 131 HTML5 - Tables.
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
Programming the Web using XHTML and JavaScript
New Perspectives on Creating Web Pages with HTML
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
Site Development Foundations Lesson 6
Lesson 5: HTML Tables.
Presentation transcript:

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 word processing characters Two-sided tag is used to create preformatted text and retains spaces and line breaks in the HTML file

Review Graphical Table is displayed using graphical elements can include design elements such as background colors, and colored borders with shading allows you to control the size of tables cells, rows, columns and alignment of text within the table

Review Creating a Table The general syntax of a graphical table is: First Cell Second Cell Third Cell Four Cell

Review The two-sided tag is used to mark a begin and end of a table structure The two-sided tag is used to create a table row. The two-sided tag is used to create a cell within a row.

Review Other Tags The two-sided tag is used to create a table heading. Table headings are like table cells except that content marked with the tag is center within the cell and displayed in bold-face font. The heading tag needs be used within a tag. The tag is most often used for column headings.

Review The two-sided tag is used to mark the header rows of a table. The two-sided tag is used to mark the footer rows of a table. The two-sided tag is used to mark the rows of the table body.,, tags are used to create row groups. You can manipulate a row group's appearance by using the style attribute.

Review The two-sided tag is used add a caption to a table in order to provide descriptive information about the table's contents. The tag must appear directly after the opening tag. The align attribute is used to change the placement of a caption.

Review Tag Attributes: The border attribute adds a border to the table. – Syntax: … where value is the width of the border in pixels. The bordercolor attribute changes the color of the table border. – Syntax: ….

Review More Tag Attributes: The cellspacing attribute controls the amount of space between the table cells. – Syntax: … The cellpadding attribute controls the space between the cell text and the cell border. – Syntax: … The width attribute specifies the width of the table. – Syntax: … where value is the width in either pixels or as a percentage of the width of the containing element.

Review Table Cells' Attributes These attributes can be applied to both and tags. The width attribute can also be applied to individual cells within the table to specify the cell width. – Syntax: … or … where value is the cell's width either in pixels or as a percentage of the width of the entire table The height attribute can also be applied to individual cells within the table to specify the cell height. – Syntax: … or … where value is the cell's height either in pixels or as a percentage of the height of the entire table. This attribute has been deprecated and might not be supported in some current browsers.

Review More Table Cells' Attributes The nowrap attribute is used to prevent line wrapping (keeping the text in one line) in a cell. Syntax: … or …

More on Tables Spanning Rows and Columns A spanning cell, created when merging several cells into one, is a cell that occupies more than one row or one column in a table.

More on Tables Spanning cells are created by inserting the rowspan attribute, the colspan attribute or both of rowspan and colspan the attribute in a or a tag.

More on Tables The syntax for these attributes is: … or … – where value is the number of rows or columns that the cell spans in the table.

More on Tables The direction of the spanning is downward and to the right of the cell containing the rowspan and colspan attributes. For example, to create a cell that spans two columns in the table, it is done this way: …

More on Tables For a cell that spans two rows, the tag is: … And to span two rows and three columns at the same time, the tag is: …

More on Tables It is important to remember that when a table includes a cell that spans multiple rows or columns, you must adjust the number of cell tags used in one or more table rows. For example, if a row contains five columns, but one of the cells in the row spans three columns, you need only three tags within the row.

More on Tables When a cell spans several rows, you need to adjust the number of cell tags in the row below the spanning cell. Ex: A table with two rows. If the top row has two cells and one of them has a rowspan=“2”, then the row below it would only have one cell.

Formatting Table Content Aligning the Contents of a Cell By default, cell text is placed in the middle of a cell, aligned with the cell's left edge. You can specify a different horizontal alignment for a td or th element by using the align attribute: … or … – where position is either left, center, right, justify or char.

Formatting Table Content To specify a different vertical alignment, of cell content, use the attribute: … – where position is top, bottom, or middle.

Formatting Table Content Formatting Table Text You can apply the same text and font styles that we learned earlier. The styles cascade down through the table structure from the table element through the row groups and table rows and down to the individual cells.

Formatting Table Content Setting the Background Color Table elements support the same background-color style that we used earlier, i.e. we can do this: … or … or … or …

Formatting Table Content More on Setting the Background Color … or … or …

Formatting Table Content Setting the Background Image Similarly, we can use the background-image style that we learnt earlier to set the background image for the table or a row or a group of rows or a cell. Example: …

Formatting Table Content Aligning a Table on a Web Page You can align the entire table using the same style to float an inline image on a page. To float the table, we do this: … – where position is either left or right.

Assignment 3 Design a webpage using a table and the following elements: – thead, tbody, tfoot – caption – tr, th, td And the following attributes: – colspan, rowspan – cellspacing, cellpadding, border – style: with the following properties: background-color color font-family font-size