 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.

Slides:



Advertisements
Similar presentations
Common Tags Always include the … tags Comments placed inside tags HTML documents –HEAD section Info about the document Info in header not generally rendered.
Advertisements

Introduction to HTML Part 2
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Session 3 Intermediate HTML Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
 2001 Prentice Hall, Inc. All rights reserved. Outline 1 Table1.html 1 2
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.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
1 Introduction to XHTML: Part 2 Outline Introduction Basic XHTML Tables Intermediate XHTML Tables and Formatting Basic XHTML Forms More Complex XHTML Forms.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 2001 Deitel & Associates, Inc. All rights reserved. 1 Chapter 10 – Intermediate HTML 4 Outline 10.1Introduction 10.2Unordered Lists 10.3Nested and Ordered.
 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.
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.
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Introduction to XHTML September 13, Components of website development
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
1 XHTML Forms A form is the mechanism to –Collect information from a browser user –Transmit collected information from a browser to a server HTML/XHTML.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
Web Development University of Khartoum. Web Development Web Programming Web Design University of Khartoum.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
Chapter 5: XHTML, Part 2 CIS 275—Web Application Development for Business I.
1 HTML Advanced Features Dr. Awad Khalil Computer Science Department AUC.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Chapter 10 – Intermediate HTML 4 Outline 10.1Introduction 10.2Unordered Lists 10.3Nested and Ordered Lists 10.4Basic HTML Tables 10.5Intermediate HTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
2.2 XHTML (cont.). Motto Yea, from the table of my memory I’ll wipe away all trivial fond records. —William Shakespeare.
1 Introduction to XHTML. 2 Main.html Program Output 1 2
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 2 Outline frameset Element 5.10 Nested frameset s.
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.
Presentation 5: Advanced XHTML Tables, Forms, Image Maps, Meta data and Frames Fundamentals of Web-Centric Development.
 2003 Prentice Hall, Inc. All rights reserved. Introduction to HTML: Frames Outline 1 Introduction 2 frameset Element 3 Nested frameset s 4 Web Resources.
 2003 Prentice Hall, Inc. All rights reserved. Introduction to HTML: Tables Outline 1 Introduction 2 Basic HTML Tables 3 Intermediate HTML Tables and.
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.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Introduction to Web Site Development John Hurley Department of Computer Science California State University, Los Angeles Lecture 4: Favicons Tables and.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
 2003 Prentice Hall, Inc. All rights reserved. Outline Chapter 2 HTML (Hypertext Markup Language) Part II.
CS3101 Internet Programming. Chapter 01 Introduction to XHTML 2Internet Programming - Chapter 01:XHTML Slides based on: Programming the World Wide Web.
Copyright © Pearson, Inc All Rights Reserved. WEEK 7: INTRODUCTION TO HTML5 Sotiris Charalambous.
1 Chapter 2 - Introduction to HTML: Part 2 Outline Basic HTML Tables Intermediate HTML Tables and FormattingBasic HTML Forms More Complex HTML Forms Internal.
Introduction to XHTML/HTML5 (part 2) Instructor: Sergey Goldman Based on Based on Internet & World Wide Web How To Program (multiple versions) 1.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Introduction to XHTML/HTML5 (part 2)
Working with Tables: Module A: Table Basics
4 Introduction to XHTML.
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
Chapter 5 - Introduction to XHTML: Part 2
4 Introduction to XHTML.
Introduction to HTML: Image Maps
1 Introduction to XHTML.
Introduction to XHTML Cont:.
Introduction to HTML.
In this session, you will learn to:
Principles of Web Design 5th Edition
Introduction to HTML: Forms
Presentation transcript:

 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 XHTML Tables and Formatting 5.4 Basic XHTML Forms 5.5 More Complex XHTML Forms 5.6 Internal Linking 5.7 Creating and Using Image Maps 5.8 meta Elements 5.9 frameset Element 5.10 Nested frameset s 5.11 Web Resources

 2004 Prentice Hall, Inc. All rights reserved. Objectives In this lesson, you will learn: –To be able to create tables with rows and columns of data. –To be able to control table formatting. –To be able to create and use forms. –To be able to create and use image maps to aid in Web-page navigation. –To be able to make Web pages accessible to search engines using meta elements. –To be able to use the frameset element to display multiple Web pages in a single browser window.

 2004 Prentice Hall, Inc. All rights reserved. 5.1 Introduction Tables –Present information Forms –Collect information from visitor Internal linking and image maps –Enhance Web page navigation Frames –Display multiple documents in the browser

 2004 Prentice Hall, Inc. All rights reserved. 5.2 Basic XHTML Tables Organize data into rows and columns table element –Attribute border Specifies the table’s border width in pixels –Attribute summary Describes the table’s contents –Attribute caption Describes the table’s content and helps text-based browsers interpret table data –Head section (header cell, defined with a thead element) Contains header information such as column names tr element (defines an individual table row) th element (defines the columns in the head section) –Foot section (defined with a tfoot element) –Table body (defined with a tbody element) –Data cells (defined with td element)

 2004 Prentice Hall, Inc. All rights reserved. Outline table.html (1 of 3)

 2004 Prentice Hall, Inc. All rights reserved. Outline table.html (2 of 3)

 2004 Prentice Hall, Inc. All rights reserved. Outline table.html (3 of 3)

 2004 Prentice Hall, Inc. All rights reserved.

5.3 Intermediate XHTML Tables and Formatting Element colgroup –Groups and formats columns Element col –Attribute align Determines the alignment of text in the column –Attribute span Determines how many columns the col element formats rowspan and colspan –Specify the number of rows or columns occupied by a cell –valign Aligns data vertically One of the four values: “ top ”, “ middle ”, “ bottom ”, “ baseline ”

 2004 Prentice Hall, Inc. All rights reserved. Outline table2.html (1 of 4)

 2004 Prentice Hall, Inc. All rights reserved. Outline table2.html (2 of 4)

 2004 Prentice Hall, Inc. All rights reserved. Outline table2.html (3 of 4)

 2004 Prentice Hall, Inc. All rights reserved. Outline table2.html 4 of 4

 2004 Prentice Hall, Inc. All rights reserved. 5.4 Basic XHTML Forms Element form –Attribute method Specifies how the form’s data is sent to Web server method = “post” –Appends form data to the browser request method = “get” –Appends form data directly to the end of the URL –Attribute action Specifies the URL of a script on the Web server –input Specifies data to provide to the script that processes the form

 2004 Prentice Hall, Inc. All rights reserved. Outline form.html (1 of 3)

 2004 Prentice Hall, Inc. All rights reserved. Outline form.html (2 of 3)

 2004 Prentice Hall, Inc. All rights reserved. Outline form.html (3 of 3)

 2004 Prentice Hall, Inc. All rights reserved. 5.5 More Complex XHTML Forms Element textarea –Inserts a multiline text box (text area) –Attribute rows Specifies the number of rows –Attribute cols Specifies the number columns –Input “password” Inserts a password box with the specified size Element checkbox –Enable users to select from a set of options Element select –Provides a drop-down list of items Element option –Adds items to the drop-down list –Attribute selected Specifies which item initially is displayed as the selected item

 2004 Prentice Hall, Inc. All rights reserved. Outline form2.html (1 of 4)

 2004 Prentice Hall, Inc. All rights reserved. Outline form2.html (2 of 4)

 2004 Prentice Hall, Inc. All rights reserved. Outline form2.html (3 of 4)

 2004 Prentice Hall, Inc. All rights reserved. Outline form2.html (4 of 4)

 2004 Prentice Hall, Inc. All rights reserved.

Outline form3.html (1 of 6)

 2004 Prentice Hall, Inc. All rights reserved. Outline form3.html (2 of 6)

 2004 Prentice Hall, Inc. All rights reserved. Outline form3.html (3 of 6)

 2004 Prentice Hall, Inc. All rights reserved. Outline form3.html (4 of 6)

 2004 Prentice Hall, Inc. All rights reserved. Outline form3.html (5 of 6)

 2004 Prentice Hall, Inc. All rights reserved. Outline form3.html (6 of 6)

 2004 Prentice Hall, Inc. All rights reserved. 5.6 Internal Linking Enables the user to jump between locations in the same document

 2004 Prentice Hall, Inc. All rights reserved. Outline links.html (1 of 3)

 2004 Prentice Hall, Inc. All rights reserved. Outline links.html (2 of 3)

 2004 Prentice Hall, Inc. All rights reserved. Outline links.html (3 of 3)

 2004 Prentice Hall, Inc. All rights reserved.

5.7 Creating and Using Image Maps Designate certain areas of an image (called hotspots) as links –Element map Attribute id –Identifies the image map Element area –Defines hotspot –Attribute shape and coords Specify the hotspot’s shape and coordinates –Rectangular ( shape = “rect” ) –Polygon ( shape = “poly” ) –Circle ( shape = “circle” )

 2004 Prentice Hall, Inc. All rights reserved. Outline picture.html (1 of 3)

 2004 Prentice Hall, Inc. All rights reserved. Outline picture.html (2 of 3)

 2004 Prentice Hall, Inc. All rights reserved. Outline picture.html (3 of 3)

 2004 Prentice Hall, Inc. All rights reserved. 5.8 meta Elements Specify information about a document –Attribute name Identifies the type of meta element “keywords” ( name = “keywords” ) –Provides search engines with a list of words that describe a page “description” ( name = “description” ) –Provides a description of a site –Attribute content Provides the information search engine use to catalog pages

 2004 Prentice Hall, Inc. All rights reserved. Outline main.html (1 of 2)

 2004 Prentice Hall, Inc. All rights reserved. Outline main.html (2 of 2)

 2004 Prentice Hall, Inc. All rights reserved. 5.9 frameset Element Allow browser display more than one document simultaneously –Element frameset Attribute cols –Specifies the frameset’s column layout Attribute rows –Specifies the number of rows and the size of each row Element frame –Specifies the documents that will be loaded –Attribute src Specifies URL of the page to display

 2004 Prentice Hall, Inc. All rights reserved. Outline index.html (1 of 2)

 2004 Prentice Hall, Inc. All rights reserved. Outline index.html (2 of 2)

 2004 Prentice Hall, Inc. All rights reserved.

Outline nav.html (1 of 2)

 2004 Prentice Hall, Inc. All rights reserved. Outline nav.html (2 of 2)

 2004 Prentice Hall, Inc. All rights reserved Nested frameset s frameset s within frameset s

 2004 Prentice Hall, Inc. All rights reserved. Outline index2.html (1 of 2)

 2004 Prentice Hall, Inc. All rights reserved. Outline index2.html (2 of 2)

 2004 Prentice Hall, Inc. All rights reserved.

5.11 Web Resources