Introduction to Web Site Development

Slides:



Advertisements
Similar presentations
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything Text Lists Other tables Pictures …
Advertisements

Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
TABLES 6 How to create tables What information suits tables How to represent complex data in tables.
Creating Tables Text Tables -created by using preformatted tags. Graphical Tables - created using Table Structure 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.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 4: Tables and Frames.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 3: Hyperlinks and Images.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Table, Forms, Metatags and Frames.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Updated on: September 4, 2010 CIS67 Foundations for Creating Web Pages Professor Al Fichera.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Tables Teppo Räisänen LIIKE/OAMK The Role of a Table Tables are quite common in computing systems In XHTML tables are used for presenting tabular.
>> 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.
HTML: Tables & Frames Internet Technology1. HTML: Tables Table tags ► surround the entire table ► header row (text is boldfaced) ► surround each row ►
 2004 Prentice Hall, Inc. All rights reserved. Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
Chapter 9 Table Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
1 Week Four– Advance HTML 2 Dr. Fadi Safieddine. 2 Lecture Content Basic HTML Tables Using based Feedback form Creating and Using Image Maps Nested.
Guideline 12 Provide context and orientation information.
HTML: Tables & Frames Internet Technology.
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.
 2003 Prentice Hall, Inc. All rights reserved. Introduction to HTML: Tables Outline 1 Introduction 2 Basic HTML Tables 3 Intermediate HTML Tables and.
CS-3432 Electronic Commerce Lecture – 7 Sikandar Shujah Toor
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.
HTML Tables The HTML table model allows authors to arrange data - text, preformatted text, images, links, forms, form fields, other tables, etc. - into.
Introduction to Web Site Development John Hurley Department of Computer Science California State University, Los Angeles Lecture 4: Favicons Tables and.
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.
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.
Chapter 9 Table Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Tables creating a table within a web page. What makes up a table? Columns Rows.
Organizing Content with Lists and Tables
Web Development & Design Foundations with HTML5
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
Working with Tables: Module A: Table Basics
>> HTML: Tables.
Web Development & Design Foundations with HTML5 8th Edition
Tables and Frames.
HTML Tables.
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Chapter 5 Introduction to XHTML: Part 2
Web Engineering Hyperlinks, Tables, Frames Lecture 04
Chapter 7 Tables.
Chapter 5 - Introduction to XHTML: Part 2
H T M L A B E S X P I N D.
Табеле Табеле се представљају елементом TABLE.
HTML and CSS 8th Edition Chapter 18: Tables.
Web Design and Development
Web Development & Design Foundations with H T M L 5
HTML Tables & Frames Internet Technology.
Introduction to XHTML Cont:.
Web Development & Design Foundations with H T M L 5
Implementing Tables to Hold Data in HTML
Introduction to HTML.
Web Development & Design Foundations with HTML5
H T M L A B E S X P I N D.
Site Development Foundations Lesson 6
In this session, you will learn to:
Principles of Web Design 5th Edition
Lesson 5: HTML Tables.
Hypertext Markup Language Table 11th Lecture
Web Client Side Technologies Raneem Qaddoura
Web Development & Design Foundations with HTML5
HTML Tables & Frames Internet Technology.
Basics of Web Design Chapter 9 Table Basics Key Concepts
Presentation transcript:

Introduction to Web Site Development Lecture 4: Tables and Frames Department of Computer Science California State University, Los Angeles

Tabular Data A table consists of: A caption (optional) A header (optional) Zero or more columns (optional) A footer (optional and if there isn’t one at the bottom) A body with zero or more rows (optional) A footer (optional and if there isn’t one at the top)

The TABLE Element Description Requirements: Usage: Used to place data in a multidimensional structure Requirements: Start Tag: REQUIRED End Tag: REQUIRED Usage: Context: Where flow content is expected Content Model: CAPTION, COLGROUP, THEAD, TFOOT, TBODY, TR elements are allowed

The TABLE Element Example <TABLE> <TR><TD>1</TD><TD>2</TD></TR> <TR><TD>3</TD><TD>4</TD></TR> </TABLE> Note: If you miss rows without elements or tags, the results are unpredictable!

The TABLE Element Optional Attributes TITLE: Specify a tool tip when the mouse hovers over the table SUMMARY: To provide a table summary (accessibility reasons, speech readers, general information)

The CAPTION Element Description: Requirements Usage: Used to define caption text for the table (optional) Requirements Start Tag: REQUIRED End Tag: REQUIRED Usage: Context: Must be first child of TABLE Content Model: Flow content, excluding nested tables

The CAPTION Element Example <TABLE> <CAPTION>My Table Caption</CAPTION> <TR><TD>1</TD><TD>2</TD></TR> <TR><TD>3</TD><TD>4</TD></TR> </TABLE>

The CAPTION Element Optional Attributes TITLE: Specify a tool tip when the mouse hovers over the caption

The TR Element Description: Requirements Use to begin a new row in a table Requirements Start Tag: REQUIRED End Tag: REQUIRED

The TR Element Usage: Context: Must be a child of TABLE, THEAD, TFOOT, or TBODY Content Model: When parent is THEAD, zero or more TH elements; otherwise, zero or more TD or TH elements.

The TR Element Example <TABLE> <TR><TD>1</TD></TR> <TR><TD>2</TD></TR> </TABLE>

The TR Element Optional Attributes None

The TD/TH Elements Description Requirements Usage Use to add table data to the current row of the table Requirements Start Tag: REQUIRED End Tag: OPTIONAL Usage Context: Must be a child of TR Content Model: Flow content

The TD/TH Elements The difference between TD and TH is that TH is exclusively used in THEAD while TH and TD can both be used in TBODY Example <TABLE> <TR><TH>C1</TH><TH>C2</TH></TR> <TR><TD>1</TD><TD>2</TD></TR> <TR><TD>3</TD><TD>4</TD></TR> </TABLE>

The TD/TH Elements Optional Attributes COLSPAN: The number of columns this piece of TD data will span. ROWSPAN: The number of rows this piece of TD data will span. HEADERS: A string containing a sequence of HTML identifiers that are associated with table headers. Used by speech readers to help the blind make sense of table data.

ROWSPAN/COLSPAN (2) Rowspan and Colspan Can Be Tricky If you’re having problems, draw out table on paper first Rowspan Row Column Colspan

The THEAD Element Description Requirements Usage Use to mark one or more rows of a table, starting from the first row, as heading rows Requirements Start Tag: REQUIRED End Tag: OPTIONAL Usage Context: Must be a child of TABLE Content Model: Zero or more TR elements

The THEAD Element Example <TABLE> <THEAD> <TR> <TH>1</TH><TH>2</TH><TH>3</TH> </TR> </THEAD> </TABLE>

The THEAD Element Optional Attributes None

The TFOOT Element Description Requirements Usage Use mark one or more rows of a table, starting from the bottom row, as footing rows Requirements Start Tag: REQUIRED End Tag: OPTIONAL Usage Context: Must be a child of TABLE Content Model: Zero or more TR elements.

The TFOOT Element Example <TABLE> <TFOOT> <TR> <TD>1</TD><TD>2</TD><TD>3</TD> </TR> </TFOOT> </TABLE>

The TFOOT Element Optional Attributes None

The TBODY Element Description Requirements Usage Use to mark one or more rows of a table, starting after the last THEAD row, as body rows. Requirements Start Tag: OPTIONAL (see standard) End Tag: OPTIONAL (see standard) Usage Context: Must be a child of TABLE and come after THEAD (if there is a THEAD) Content Model: Zero or more TR elements.

The TBODY Element Example <TABLE> <TBODY><TR> <TD>1</TD><TD>2</TD><TD>3</TD> </TR></TBODY> </TABLE>

The TBODY Element Optional Attributes None

The IFRAME Element Very popular in the late 90’s Really old school and outdated now HTML5 standard has deprecated the FRAME and FRAMESET elements One type of frame however, still exists in HTML5, the inline frame element, IFRAME

The IFRAME Element Description Requirements Usage Use to load the contents of another HTML page in a child window within the current document Requirements Start Tag: REQUIRED End Tag: REQUIRED Usage Context: Where flow or phrasing content is expected Content Model: Fallback text, in the case that the web browser does not support inline frames

The IFRAME Element Example <IFRAME SRC="index.html"> Your web browser does not support inline frames! </IFRAME>

The IFRAME Element Optional Attributes SRC: The URL of the document to load within the frame. Can be absolute or relative. NAME: The name of the frame window (useful when we do JavaScript later on). WIDTH: The desired width of the frame window. HEIGHT: The desired height of the frame window.