Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to HTML Chapter Six Tables.
Advertisements

Using HTML Tables Presenting Information & Layout Control.
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
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
CIS101 Introduction to Computing Week 07. Agenda Your questions Resume project Review Project Two HTML Project Three This week online Next class.
© 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.
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.
Unit 2, cont. September 14 HTML,Validating your pages, Publishing your site.
1 XHTML continued Use the anchor tag to link from page to pageUse the anchor tag to link from page to page Create absolute and relative linksCreate absolute.
Introducing Web Tables
Using HTML Tables.
Tables. Tables2 Terminology Caption Headings Cell Data.
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. 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.
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.
Tables in HTML Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
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.
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.
>> Introduction to HTML: Tables. HTML is used to give websites structure 5 Basic Tags Element = Start-Tag+Content+End-Tag Heading Tags [h1-h6] Paragraph.
10/4/2015Tables1 Spring, 2008 Modified by Linda Kenney 4/2/08.
1 Web Developer Foundations: Using XHTML Chapter 3 XHTML Hyperlinks and Tables.
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 3 Key Concepts.
Web Technologies COMP6115 Session 2: Planning, Designing, Constructing and Testing Static Web Sites Dr. Paul Walcott Department of Computer Science, Mathematics.
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
Html Tables Basic Table Markup. How Tables are Used For Data Display Tables were originally designed to display and organize tabular data (charts, statistics,
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
WDMD 170 – UW Stevens Point 1 WDMD 170 Internet Languages eLesson: HTML/XHTML Tables (NON-audio version) © Dr. David C. Gibbs
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.
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.
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.
CS-3432 Electronic Commerce Lecture – 7 Sikandar Shujah Toor
1 Tables attributes. 2 Table attributes: border Activates border around cells Syntax: – where “n” is a value in pixels which controls the “thickness”
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.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Assistant Professor,UCER Naini,Allahabad
Web Page Tables GMU-Teaching with Technology. Table Characteristics: Looks like a news page Contains columns and rows.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
Tables creating a table within a web page. What makes up a table? Columns Rows.
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.
Working with Tables: Module A: Table Basics
>> HTML: Tables.
LAB Work 02 MBA 61062: E-Commerce
HTML Tables CS 1150 Spring 2017.
H T M L A B E S X P I N D.
Site Development Foundations Lesson 6
Lesson 5: HTML Tables.
Presentation transcript:

Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung

Department of Information Technology 2 of 21 Tables Provide a quick and concise method of presenting information A 2 dimensional representation of data View as a collection of rows and columns to organize and display data A cell - the intersection of a row and a column Each row is made up of data cells or columns

Department of Information Technology 3 of 21 The W3C discourages using tables for document layout because tables can be difficult for non-visual user agents to interpret User agents with small monitors, such as Personal Digital Assistants (PDAs), and browsers that use large fonts may have difficulty rendering a Web page that is laid out using tables Creating Basic Tables

Department of Information Technology 4 of 21 Tables - basic tags The following tags are used to create tables:, - Defines the beginning and end of a table, - give a title to a table, - Defines the beginning and end of a table row, - Defines row or column headings, - Defines the data in each cell of a table row

Department of Information Technology 5 of 21 Tables need to specify the contents of the respective cells defined within the and tags each row in your table requires and tags after defining a row, you then define each of the columns with the and tags

Department of Information Technology 6 of 21 Tables A simple table: Row 1 Column 1 Row 1 Column 2 Row 2 Column 1 Row 2 Column 2

Department of Information Technology 7 of 21 Table Widths width="80%” - specifies the size of the table, can be stated as a percentage or a fixed number of pixels Eg:

Department of Information Technology 8 of 21 Horizontal Alignment You can use the align attribute to adjust the horizontal alignment of the contents of all table elements with the exception of the and elements The values you can assign to the align attribute are left, center, right, and justify

Department of Information Technology 9 of 21 Example: Schedule Table

Department of Information Technology 10 of 21 Example: Schedule Table Schedule table after adjusting the width to 100% and centering the cells

Department of Information Technology 11 of 21 Borders element’s border attribute to add a border to a table The value assigned to the border attribute determines the thickness of the border in pixels border="num” - sets size of the table border, where “0” is no border

Department of Information Technology 12 of 21 Borders Table with a 5-pixel border in a Web browser

Department of Information Technology 13 of 21 Displaying Empty Cells Web browsers do not render the borders around empty cells To fix this problem, you need to add a element for each empty cell, and include a non-breaking space character entity ( ) as each cell’s content Blank cells with border, Blank cells without border,

Department of Information Technology 14 of 21 Displaying Empty Cells Missing borders around empty cells

Department of Information Technology 15 of 21 Cell Margins cellspacing attribute specifies the amount of horizontal and vertical space between table cells assign a value to the cellspacing = “n” representing the number of pixels that you want between table cells cellpadding attribute specifies the amount of horizontal and vertical space between each cell’s border and the contents of the cell

Department of Information Technology 16 of 21 Cell Margins Add cellspacing & cellpadding to table, adding 10 pixels of spacing between cells and spacing within the cells in the table

Department of Information Technology 17 of 21 Cells that Span Multiple Rows or Columns You can cause cells to span multiple rows or columns by including the rowspan or colspan attributes in the or elements An example of the colspan attribute, the table in next slide shows a breakdown of the animal kingdom into phylum and class

Department of Information Technology 18 of 21 Cells that Span Multiple Rows or Columns Table with cells that span multiple rows

Department of Information Technology 19 of 21 Tables - more attributes, align (attribute) = top/bottom, default is center,, can have align (attribute)= left/right/center, bgcolor (attribute), width (attribute)

Department of Information Technology 20 of 21 Table display Image displayed in a table

Department of Information Technology 21 of 21 Some Sites for your reference Good website design: Bad examples: Lots of information on XHTML The definitive XHTML site XHTML validator