1 Introduction to XHTML: Part 1 Outline Introduction Elements and Attributes Editing XHTML Common Elements W3C XHTML Validation Service Headers Linking.

Slides:



Advertisements
Similar presentations
HTML. The World Wide Web Protocols Addresses HTML.
Advertisements

Chapter 2 HTML Basics Key Concepts
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Background: HTML and CSS Chapters 1-4 of Deitel XML text.
1 Outline 9.1Introduction 9.2Markup Languages 9.3Editing HTML 9.4Common Tags 9.5Headers 9.6Text Styling 9.7Linking 9.8Images 9.9Formatting Text With 9.10Special.
 2001 Deitel & Associates, Inc. All rights reserved. 1 Outline 9.1Introduction 9.2Markup Languages 9.3Editing HTML 9.4Common Tags 9.5Headers 9.6Text Styling.
B118 Web Programming Session #3 Introduction to XHTML February 16, 2004.
1 Introduction to XHTML: Part 2 Outline Introduction Basic XHTML Tables Intermediate XHTML Tables and Formatting Basic XHTML Forms More Complex XHTML Forms.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
Chapter 2 Introduction to HTML5 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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Chapter 2 HTML (Hypertext Markup Language) Part I.
1 Outline 3.1 Introduction 3.2 Editing HTML 3.3 First HTML Example 3.4 W3C HTML Validation Service 3.5 Headers 3.6 Linking 3.7 Images 3.8 Special Characters.
1 HTML Basics Dr. Awad Khalil Computer Science Department AUC.
HTML (HyperText Markup Language)
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.
 2001 Prentice Hall, Inc. All rights reserved. Lecture 1 Internet and the World Wide Web Course structure Introduction XHTML Cascading Style Sheets JavaScript.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Introducing.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
1 HTML Advanced Features Dr. Awad Khalil Computer Science Department AUC.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
1 Introduction to HTML: Part 1 Outline Introduction Elements and Attributes Editing HTML Common Elements Headers Images Unordered Lists Nested and Ordered.
1 Web Development Lecture # 11 Introduction to XHTML (Chapter # 4) It.GulGasht.Com.
HTML,DHTML & Javascript/Session1/1 of 39 Introduction and Basic Tags Session 1 of Using HTML, DHTML & JavaScript.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
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.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
WEB DESIGN AND PROGRAMMING Introduction to XHTML.
1 Introduction to XHTML. 2 Main.html Program Output 1 2
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
Introduction to XHTML 1 Chapter 4 Introduction to XHTML: Part 1 Reference From: Internet & World Wide Web: How to Program Deitel, Deitel & Goldburg.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2- part 2 Key Concepts 1 Copyright © Terry Felke-Morris.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CS3101 Internet Programming. Chapter 01 Introduction to XHTML 2Internet Programming - Chapter 01:XHTML Slides based on: Programming the World Wide Web.
INT222 – Internet Fundamentals
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Introduction to XHTML/HTML5 (part 1) Instructor: Sergey Goldman Based on Based on Internet & World Wide Web (multiple editions)
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 22 - i-mode Outline 22.1 Introduction 22.2 Japan’s Telecommunications Industry and Infrastructure.
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
Web Development & Design Foundations with HTML5 8th Edition
Chapter 24 – Introduction to XHTML Basic: Part I
Chapter 4 Introduction to XHTML: Part 1
Advanced Web Programming Intro to HTML5 part 1
Chapter 4 Introduction to XHTML: Part 1
Chapter 1: Introduction to XHTML (part 1)
Introduction to XHTML.
Chapter 4 - Introduction to XHTML: Part 1
Introduction to HTML: Part 1
Introduction to HTML: Part 1
Chapter 4 - Introduction to XHTML: Part 1
1 Introduction to XHTML.
Introduction to HTML- Basics
Chapter 4 - Introduction to XHTML: Part 1
Computer Science Department
<html> This tag is used to begin each html document
Introduction to HTML.
Chapter 4 - Introduction to XHTML: Part 1
Presentation transcript:

1 Introduction to XHTML: Part 1 Outline Introduction Elements and Attributes Editing XHTML Common Elements W3C XHTML Validation Service Headers Linking Images Special Characters and More Line Breaks Unordered Lists Nested and Ordered Lists Internet and World Wide Web Resources

 2001 Prentice Hall, Inc. All rights reserved. Outline 2 Main.html Program Output 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 " Internet and WWW How to Program - Welcome Welcome to XHTML! The text between the title tags appears as the title of the web page. Elements between the body tags of the html document appear in the body of the web page

3 W3C XHTML Validation Service Fig. 4.2Validating an XHTML document. (Courtesy of World Wide Web Consortium (W3C).)

4 W3C XHTML Validation Service Fig. 4.3XHTML validation results. (Courtesy of World Wide Web Consortium (W3C).)

 2001 Prentice Hall, Inc. All rights reserved. Outline 5 Header.html 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 " Internet and WWW How to Program - Headers Level 1 Header 16 Level 2 header 17 Level 3 header 18 Level 4 header 19 Level 5 header 20 Level 6 header The font size of the text between tags decreases as the header level increases. Every XHTML document is required to have opening and closing html tags.

 2001 Prentice Hall, Inc. All rights reserved. Outline 6 Program Output Select a header based on the amount of emphasis you would like to give that text.

 2001 Prentice Hall, Inc. All rights reserved. Outline 7 Links.html 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 " Internet and WWW How to Program - Links Here are my favorite sites Click on a name to go to that page Deitel Prentice Hall Yahoo! USA Today Text between strong tags will appear bold. Elements placed between paragraph tags will be set apart from other elements on the page with a vertical line before and after it. Linking is accomplished in XHTML with the anchor (a) element. The anchor links to the page that’s value is given by the href attribute. The text between the a tags is the anchor for the link.

 2001 Prentice Hall, Inc. All rights reserved. Outline 8 Program Output Clicking on the “Deitel” link will open up the Deitel homepage in a new browser window.

 2001 Prentice Hall, Inc. All rights reserved. Outline 9 Contact.html 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 " Internet and WWW How to Program - Contact Page My address is Click the address and your browser will open an 19 message and address it to me To create an link include “mailto:” before the address in the href attribute.

 2001 Prentice Hall, Inc. All rights reserved. Outline 10 Program Output When a user clicks on an link, an message addressed to the value of the link will open up.

 2001 Prentice Hall, Inc. All rights reserved. Outline 11 Picture.html 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 " Internet and WWW How to Program - Welcome <img src = "xmlhtp.jpg" height = "238" width = "183" 16 alt = "XML How to Program book cover" /> 17 <img src = "jhtp.jpg" height = "238" width = "183" 18 alt = "Java How to Program book cover" /> The value of the src attribute of the image element is the location of the image file. The height and width attributes of the image element give the height and width of the image. The value of the alt attribute gives a description of the image. This description is displayed if the image cannot be displayed.

 2001 Prentice Hall, Inc. All rights reserved. Outline 12 Program Output The second image could not be displayed properly, so the value of its alt attribute is displayed instead.

 2001 Prentice Hall, Inc. All rights reserved. Outline 13 Nav.html 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 " Internet and WWW How to Program - Navigation Bar <img src = "buttons/links.jpg" width = "65" 19 height = "50" alt = "Links Page" /> <img src = "buttons/list.jpg" width = "65" 23 height = "50" alt = "List Example Page" /> <img src = "buttons/contact.jpg" width = "65" 27 height = "50" alt = "Contact Page" /> <img src = "buttons/header.jpg" width = "65" 31 height = "50" alt = "Header Page" /> <img src = "buttons/table.jpg" width = "65" 35 height = "50" alt = "Table Page" /> Placing an image element between anchor tags, creates an image that is an anchor for a link. A line break will render an empty line on a web page.

 2001 Prentice Hall, Inc. All rights reserved. Outline 14 Nav.html Program Output <img src = "buttons/form.jpg" width = "65" 39 height = "50" alt = "Feedback Form" /> Using an image as an anchor works exactly the same as using text. Clicking on the image entitled “links” brings the user to the page on the right.

 2001 Prentice Hall, Inc. All rights reserved. Outline 15 Contact2.html 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 " Internet and WWW How to Program - Contact Page My address is Click on the address and your browser will 21 automatically open an message and address it to my 22 address All information on this site is © 27 Deitel & Associates, Inc tags, it can be set in subscript --> 31..., and it can be set into --> 32 --> 33 You may download 3.14 x characters worth of information from this site. 35 Only one download per hour is permitted. The horizontal rule element renders a horizontal line on the web page. Special characters are denoted with an ampersand (&) and an abbreviation for that character. In this case, the special characters are ampersand and copyright.

 2001 Prentice Hall, Inc. All rights reserved. Outline 16 Contact2.html Program Output Note: < ¼ of the information 38 presented here is updated daily Text placed between del tags is struck out.. Text placed between the sup tags is superscripted. Text placed between the sub tags is subscripted.

 2001 Prentice Hall, Inc. All rights reserved. Outline 17 Links2.html 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 " Internet and WWW How to Program - Links Here are my favorite sites Click on a name to go to that page Deitel Prentice Hall Yahoo! USA Today The entries in an unordered list must be included between the and tags. An entry in the list must be placed between the and tags.

 2001 Prentice Hall, Inc. All rights reserved. Outline 18 Program Output Each entry in the list is rendered on its own line with a bullet before it.

 2001 Prentice Hall, Inc. All rights reserved. Outline 19 List.html 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3 " Internet and WWW How to Program - Lists The Best Features of the Internet You can meet new people from countries around 19 the world. 20 You have access to new media as it becomes public: tag --> New games 27 New applications For business 32 For pleasure Entries for an ordered list must be placed between the and tags. By inserting a list as an entry in another list, lists can be nested.

 2001 Prentice Hall, Inc. All rights reserved. Outline 20 List.html 36 Around the clock news 37 Search engines 38 Shopping 39 Programming XML 43 Java 44 XHTML 45 Scripts 46 New languages Links 55 Keeping in touch with old friends 56 It is the technology of the future! My 3 Favorite CEOs Harvey Deitel 66 Bill Gates 67 Michael Dell 68 The type attribute of the ordered list element allows you to select a sequence type to order the list. Text placed between the em tags will be italicized.

 2001 Prentice Hall, Inc. All rights reserved. Outline 21 List.html Program Output Some sequence types available to order lists are roman numerals, letters and numbers. Nested lists are indented underneath the main list.