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

Slides:



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

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 3: Hyperlinks and Images.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 2: More 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.
What is a TABLE? The HTML table allows web designers to arrange & organize data -- text, images, hyperlinks, forms, form fields, other tables, etc. Tables.
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.
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.
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
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.
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
>> 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.
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.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
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.
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.
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything › Text › Lists › Other tables › Pictures › …
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.
Introduction to Web Site Development John Hurley Department of Computer Science California State University, Los Angeles Lecture 4: Favicons Tables and.
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.
INTRODUCTION ABOUT DIV Most websites have put their content in multiple columns. Multiple columns are created by using or elements. The div element is.
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.
Cao Yuewen SEEM4570 Tutorial 03: CSS Cao Yuewen
Web Development & Design Foundations with HTML5 8th Edition
Tables and Frames.
HTML Tables CS 1150 Spring 2017.
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.
Introduction to Web Site Development
Chapter 5 Introduction to XHTML: Part 2
Web Engineering Hyperlinks, Tables, Frames Lecture 04
Chapter 7 Tables.
Chapter 5 - Introduction to XHTML: Part 2
Web Design & Development
Табеле Табеле се представљају елементом TABLE.
HTML and CSS 8th Edition Chapter 18: Tables.
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
Principles of Web Design 5th Edition
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 Steven Emory Department of Computer Science California State University, Los Angeles Lecture 4: Tables and Frames

The TABLE Element (Basics) Description: Use the TABLE element to place data in a multidimensional structure, in the form of a table Placement: Flow Content (i.e. don’t put a table inside a paragraph or in-between text) Content: CAPTION, COLGROUP, THEAD, TFOOT, and TBODY elements

The TABLE Element (Syntax) Requirements Start Tag: REQUIRED End Tag: REQUIRED Self-Closing Tag: FORBIDDEN Example

The TABLE Element (Attributes) Optional Attributes TITLE: Specify a tool tip when the mouse hovers over the table

The CAPTION Element (Basics) Description: Use the CAPTION element to define caption text for the table (optional) Placement: CAPTION must be a child of TABLE Content: Flow content (excluding nested tables).

The CAPTION Element (Syntax) Requirements Start Tag: REQUIRED End Tag: REQUIRED Self-Closing Tag: FORBIDDEN Example My Table Data 1 2

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

The TR Element (Basics) Description: Use the TR element to begin a new row in a table Placement: TR must be a child of TABLE, THEAD, TFOOT, or TBODY Content: When parent is THEAD, zero or more TH elements; otherwise, zero or more TD or TH elements.

The TR Element (Syntax) Requirements Start Tag: REQUIRED End Tag: OPTIONAL Self-Closing Tag: YES (XML Syntax) Example 1 2

The TR Element (Attributes) Optional Attributes None

The TD/TH Elements (Basics) Description: Use the TD/TH element to add table data to the current row of the table Placement: TD/TH must be a child of TR Content: Flow content The difference between TD and TH is that TH is exclusively used in THEAD while TH and TD can both be used in TBODY

The TD/TH Elements (Syntax) Requirements Start Tag: REQUIRED End Tag: OPTIONAL Self-Closing Tag: YES (XML Syntax) Example C1 C

The TD/TH Elements (Attributes) 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.

The THEAD Element (Basics) Description: Use the THEAD element to mark one or more rows of a table, starting from the first row, as heading rows Placement: THEAD must be a child of TABLE Content: Zero or more TR elements.

The THEAD Element (Syntax) Requirements Start Tag: REQUIRED End Tag: OPTIONAL Self-Closing Tag: YES (XML Syntax) Example 1 2 3

The THEAD Element (Attributes) Optional Attributes None

The TFOOT Element (Basics) Description: Use the TFOOT element to mark one or more rows of a table, starting from the bottom row, as footing rows. Useful for summarizing data Placement: TFOOT must be a child of TABLE Content: Zero or more TR elements.

The TFOOT Element (Syntax) Requirements Start Tag: REQUIRED End Tag: OPTIONAL Self-Closing Tag: YES (XML Syntax) Example 1 2 3

The TFOOT Element (Attributes) Optional Attributes None

The COLGROUP Element (Basics) Description: Use the COLGROUP element to apply a CSS style down all rows, spanning a specified number of columns. Useful for coloring columns and grouping data. Placement: COLGROUP must be a child of TABLE Content: Zero or more COL elements.

The COLGROUP Element (Syntax) Requirements Start Tag: OPTIONAL (read standard) End Tag: OPTIONAL (read standard) Self-Closing Tag: YES (XML Syntax) Example See the lecture example code for an example since this element uses something we haven’t really covered yet (CSS).

The TBODY Element (Basics) Description: Use the TBODY element to mark one or more rows of a table, starting after the last THEAD row, as body rows. Placement: TBODY must be a child of TABLE and come after THEAD (if there is a THEAD) Content: Zero or more TR elements.

The TBODY Element (Syntax) Requirements Start Tag: OPTIONAL (see standard) End Tag: OPTIONAL (see standard) Self-Closing Tag: YES (XML Syntax) Example 1 2 3

The TBODY Element (Attributes) Optional Attributes None

Frames 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 (Basics) Description: Use the IFRAME to load the contents of another HTML page in a child window within the current document. Placement: IFRAME is embedded content, and can be placed anywhere flow and phrasing content is expected. Content: Fallback text, in the case that the web browser does not support inline frames.

The IFRAME Element (Syntax) Requirements Start Tag: REQUIRED End Tag: REQUIRED Self-Closing Tag: FORBIDDEN Example Your web browser does not support inline frames!

The IFRAME Element (Attributes) 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.