2001 Prentice Hall, Inc. All rights reserved. Lecture 1 Internet and the World Wide Web Course structure Introduction XHTML Cascading Style Sheets JavaScript Dynamic HTML Web Servers Databases Server side technology XML E-commerce VRML
2001 Prentice Hall, Inc. All rights reserved. Lecture 1 Chapter 1 - Introduction to Computers and the Internet Outline 1.1 Introduction 1.2 What Is a Computer? 1.3 Types of Programming Languages 1.6 History of the Internet 1.7 Personal Computing 1.8 History of the World Wide Web 1.11Key Software Trend: Object Technology 1.12 JavaScript: Object-Based Scripting for the Web 1.13 Browser Portability 1.15 Java 1.17 Dynamic HTML
2001 Prentice Hall, Inc. All rights reserved. Lecture Introduction Internet and World Wide Web How to Program: Second Edition –All concepts presented in full working program examples –Examples available in CD-ROM (back cover of book), from and on the Cyber Classroom interactive CD-ROM
2001 Prentice Hall, Inc. All rights reserved. Lecture History of the Internet ARPAnet –Implemented in late 1960’s by ARPA (Advanced Research Projects Agency of DOD) –Network operated packet switching technique Digital data sent in small packages called packets Packets contained data, address info, error-control info and sequencing info Greatly reduced transmission costs of dedicated communications lines –Network designed to be operated without centralized control If portion of network fails, remaining portions still able to route packets
2001 Prentice Hall, Inc. All rights reserved. Lecture History of the Internet (II) Transmission Control Protocol (TCP) –Name of protocols for communicating over ARPAnet –Ensured that messages were properly routed and that they arrived intact Huge variety of networking hardware and software appeared –ARPA achieved inter-communication between all platforms with development of the IP Internetworking Protocol Current architecture of Internet –Combined set of protocols called TCP/IP
2001 Prentice Hall, Inc. All rights reserved. Lecture Personal Computing Computers today –As powerful as million dollar machines from 20 years ago –Workstations Most powerful desktops today Provide users with enormous capabilities –Information easily shared over networks Networks controlled by servers –Common programs and data used by client computers –Popular operating systems UNIX, OS/2, MacOS, Windows, Windows NT, Linux
2001 Prentice Hall, Inc. All rights reserved. Lecture History of the World Wide Web WWW –Allows computer users to locate and view multimedia-based documents –Introduced in 1990 by Tim Berners-Lee Internet today –Mixes computing and communications technologies –Makes information constantly and instantly available to anyone with a connection
2001 Prentice Hall, Inc. All rights reserved. Lecture JavaScript: Object-Based Scripting for the Web JavaScript –Attractive package for advancing level of programming language education –Object-based language –Supports proper software engineering techniques –Free for download in today’s most popular Web browsers Attractive to colleges Bug fixes and new versions easily obtained –Powerful scripting language Portable Programs execute interpretively on client machines
2001 Prentice Hall, Inc. All rights reserved. Lecture Browser Portability Browser portability –Great challenge Great diversity of client browsers in use Many different platforms also in use Difficult to –Know capabilities and features of all browsers and platforms in use –Find correct mix between absolute portability, complexity and usability of features
2001 Prentice Hall, Inc. All rights reserved. Lecture Dynamic HTML DHTML –Two versions Microsoft Netscape –Consists of number of technologies freely available for download –Used for developing high-performance, Web-based applications Much of application’s work performed directly on client rather then on server or Internet
2001 Prentice Hall, Inc. All rights reserved. Lecture 1 Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Elements and Attributes 4.3 Editing XHTML 4.4 Common Elements 4.5 W3C XHTML Validation Service 4.6 Headers 4.7 Linking 4.8 Images 4.9 Special Characters and More Line Breaks 4.10 Unordered Lists 4.11 Nested and Ordered Lists 4.12 Internet and World Wide Web Resources
2001 Prentice Hall, Inc. All rights reserved. Outline Lecture 1 Main.html Program Output 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//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
2001 Prentice Hall, Inc. All rights reserved. Lecture W3C XHTML Validation Service Fig. 4.2Validating an XHTML document. (Courtesy of World Wide Web Consortium (W3C).)
2001 Prentice Hall, Inc. All rights reserved. Lecture W3C XHTML Validation Service Fig. 4.3XHTML validation results. (Courtesy of World Wide Web Consortium (W3C).)
2001 Prentice Hall, Inc. All rights reserved. Outline Lecture 1 Header.html 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//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 Lecture 1 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 Lecture 1 Links.html 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//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 space 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 Lecture 1 Program Output Clicking on the “Deitel” link will open up the Deitel homepage in the browser window.
2001 Prentice Hall, Inc. All rights reserved. Outline Lecture 1 Contact.html 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//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 Lecture 1 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 Lecture 1 Picture.html 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//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 Lecture 1 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 Lecture 1 Nav.html 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//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 force a new line on a web page.
2001 Prentice Hall, Inc. All rights reserved. Outline Lecture 1 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 Lecture 1 Contact2.html 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//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 Lecture 1 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 Lecture 1 Links2.html 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//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 Lecture 1 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 Lecture 1 List.html 1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//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 Lecture 1 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 style 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 Lecture 1 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.