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.

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to HTML Chapter Six Tables.
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.
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.
Chapter 3 – Web Design Tables & Page Layout
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
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
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
© 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 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.
The Power of Tables They aren't just for sitting stuff on anymore...
Exploring the Internet Creating web pages with 2-d layout Instructor: Michael Krolak Instructor: Patrick Krolak See also
1 Tables: Data in Rows and Columns – What is Table? – How Tables are Used? – Designing Tables – Table, Cell, Row Attributes – Using Tables for Alignment.
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.
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.
CIS 1310 – HTML & CSS 8 Tables. CIS 1310 – HTML & CSS Learning Outcomes  Create a Table  Apply Attributes to Format Tables  Increase the Accessibility.
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.
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.
Actual Building the Pages Tables. Using Table Elements  To build effective page templates, you must be familiar with the HTML table elements and attributes.
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
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.
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.
HTML ( HYPER TEXT MARK UP LANGUAGE ). What is HTML HTML describes the content and format of web pages using tags. Ex. Title Tag: A title It’s the job.
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.
HTML Tables The HTML table model allows authors to arrange data - text, preformatted text, images, links, forms, form fields, other tables, etc. - into.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Web Page Tables GMU-Teaching with Technology. Table Characteristics: Looks like a news page Contains columns and rows.
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.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 5.
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
CNIT 131 HTML5 - Tables.
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
Working with Tables: Module A: Table Basics
LAB Work 02 MBA 61062: E-Commerce
Tutorial 5 Working with Tables and Columns
Lesson 7 Week 7 Course project defence Nov. 7, 2017
Tutorial 5 Working with Web Tables
New Perspectives on Creating Web Pages with HTML
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
For the World Wide Web Styling Tables with CSS
Site Development Foundations Lesson 6
Presentation transcript:

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 only text, evenly spaced on the Web page in rows and columns – uses only standard word processing characters

Tables Let’s see a Text Table Example…

Tables A 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

Tables Let’s see a Graphical Table Example…

Tables Text Table Fixed-Width Fonts vs Proportional Fonts – When you create a text table, the font you use is important. A text table relies on space and the characters that fill those spaces to create its column boundaries. Using a fixed- width, or mono-space font will help the columns to be aligned properly. Fixed-width fonts use the same amount of space for each character.

Tables Text Table – Proportional fonts assign a different amount of space for each character depending on the width of that character. For example, since the character “m” is wider than the character “l”, a proportional font assigns it more space. Proportional fonts are more visually attractive, and typically easier to read, than fixed-width fonts. But proportional fonts in a text table can cause column alignment problem when the page is rendered in the user’s browser.

Tables Using Preformatted Text The tag creates preformatted text and retains any spaces or line breaks indicated in the HTML file. The tag displays text using a fixed-width font By using the tag, a text table can be displayed by all browsers, and the columns will retain their alignment no matter what font the browser is using Preformatted text is created using the following syntax: content

Tables Graphical Table Marking a Table, Table Row and Table Cell Table Tables are marked with a two-sided tag that identifies the start and end of the table structure. Row Each row in the table is marked using the two- sided tag, (tr = table row)

Tables Cell Within each table row, the two-sided tag marks the content of individual tables cells, (td = table data.) There is no tag for table columns because the number of columns is determined by the number of cells within a row.

Tables Putting Together The general syntax of a graphical table is: First Cell Second Cell Third Cell Four Cell

Tables Creating Table Headings Table headings are marked with the tag. 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. To create a single row of headings, here is the syntax Column 1 Column 2

Tables Creating Row Groups You can classify a table's rows into row groups that indicate their purpose in the table HTML supports three types of row groups: table header, table body and table footer. Because order is important in a HTML file, the table header must be listed before the table footer and both the table header and footer must appear before the table body.

Tables To mark the header rows of a table, use the syntax: table rows – where table rows are defined using the tag. – A table can contain only one set of table header rows.

Tables To mark the footer rows of a table, use the syntax: table rows – A table can contain only one set of table footer rows. And finally, to mark the rows of the table body, use the syntax: table rows – A table can contain multiple table body sections.

Tables Creating row groups does not affect a table's appearance. You can apply different styles to table groups in order to make them appear differently. We'll explore this in later lecture.

Tables Creating a Table Caption You can add a caption to a table in order to provide descriptive information about the table's contents. The syntax is: content The tag must appear directly after the opening tag.

Tables By default the caption appears centered above a table. We can change the placement of a caption using the align attribute: content

Tables where position has the following values: “bottom” to place the caption centered below the table “top” to place the caption centered above the table “left” to place the caption above the table aligned with the left table margin “right” to place the caption above the table aligned with the right table margin

Tables Captions are rendered as normal text without special formatting, but you can format and align captions using the styles discussed in previous lectures.

Tables Adding a Table Border By default, browser displays the tables without table borders. You can create a table border by adding the border attribute to the tag. The syntax for doing so is: … – where value is the width of the border in pixels

Tables Setting Table Border Color By default, table borders are displayed in two shades of gray that create a 3-D effect. You can change these colors by using the bordercolor attribute as follows: … The bordercolor is supported differently by different browsers.

Tables Setting Cell Spacing Cell spacing refers to the amount of space between the table cells. By default, the browser sets the cell spacing to 2 pixels. To set a different cell spacing value, the cellspacing attribute is used: …

Tables Setting Cell Padding The cell padding is the space between the cell text and the cell border. By default, the cell padding value is 1 pixel. To change it, the cellpadding attribute is used as follows: …

Tables Setting the Table Width The syntax is: … – where value is the width in either pixels or as a percentage of the width of the containing element.

Tables Setting Column Width and Row Height The width attribute can also applied to individual cells within the table, using the form: … or … – where value is the cell's width either in pixels or as a percentage of the width of the entire table

Tables You can also set the width of a column by setting the width of the first cell in the column; the remaining cells in the column will adopt that width. If the content of one of the other cells exceeds that width, however the browser expands the size of all the cells in the column to match the width required to display that content. If you apply different widths for two cells in the same column, a browser applies the larger value to the column.

Tables The height attribute is used to set the height of a cell: … or … – where value is the cell's height either in pixels or as a percentage of the height of the entire table

Practice Lab Create a text table and a graphical table.