Dynamic Web Programming and HTML5
eBook - ePub

Dynamic Web Programming and HTML5

Paul S. Wang

Buch teilen
  1. 664 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Dynamic Web Programming and HTML5

Paul S. Wang

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Über dieses Buch

With organizations and individuals increasingly dependent on the Web, the need for competent, well-trained Web developers and maintainers is growing. Helping readers master Web development, Dynamic Web Programming and HTML5 covers specific Web programming languages, APIs, and coding techniques and provides an in-depth understanding of the underlyin

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Dynamic Web Programming and HTML5 als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Dynamic Web Programming and HTML5 von Paul S. Wang im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Informatica & Programmazione di giochi. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
2012
ISBN
9781000755749

Chapter 1

The Web: An Overview

Ever since its beginning in the early 1980s, the Web has been evolving and maturing. Today, the Web’s impact on how industries, governments, institutions, and individuals conduct business and socialize, is ever expanding. It is not surprising that the need for well-trained people to develop and program websites is increasing at a rapid pace.
The Web involves networking, protocols, servers, clients as well as languages, services, and user interfaces. Thus, the Web is a rather complicated arena, and mastering Web development involves in-depth understanding and working experience with all the involved technologies and how to combine them for specific functions and effects.
Even for people who will not become Web professionals, a good understanding of the Web, how it relates to the Internet, and what makes it tick will be valuable in many a workplace.
The overview in this chapter sets up the scene and the context within which to study and apply the specific languages and programming techniques for building well-developed and dynamic websites.

1.1 Web Is Part of the Internet

For the vast majority of computer users, getting online means browsing the Web. That is how important the Web has become in our daily lives. But of course the Web is just one among many services available on the Internet. These include email, file transfer, remote login, audio and video streaming, and many more.
The Internet spans the globe by connecting computer networks together. Such networks include local area networks (LANs) in office buildings, college campuses, and homes, as well as wide area networks (WANs) that cover whole cities or even countries. The Internet enables each connected computer, called a host, to communicate with any other hosts.
In addition to host computers, the network infrastructure itself involves dedicated computers that perform network functions: hubs, switches, bridges, routers, and gateways. For programs and computers from different vendors, under different operating systems, to communicate on a network, a detailed set of rules and conventions must be established for all parties to follow. Such rules are known as networking protocols. We use different networking services for different purposes; therefore, each network service defines its own protocol that adds specific features to existing, more general, underlying protocols. Protocols govern such details as
• Address format of hosts and processes
• Data format
• Manner of data transmission
• Sequencing and addressing of messages
• Initiating and terminating connections
• Establishing services
• Accessing services
• Data integrity, privacy, and security
Thus, for a program on one host to communicate with another program on a different host, both programs must follow the same protocol. The Open System Interconnect (OSI) Reference Model (Figure 1.1) provides a standard layered view of networking protocols and their interdependence. The corresponding layers on different hosts, and inside the network infrastructure, perform complementary tasks to make the connection between the communicating processes (P1 and P2 in Figure 1.1).
FIGURE 1.1: Networking Layers
Image
The Internet uses the Internet Protocol Suite. The basic IP (Internet Protocol ) is a network layer protocol. The TCP (Transport Control Protocol ) and UDP (User Datagram Protocol ) are at the transport layer. The Web is a service that uses an application layer protocol known as HTTP (the Hypertext Transfer Protocol; Section 1.16).
Networking protocols are no mystery. Think about the protocol for making a telephone call. You (a client process) must pick up the phone, listen for the dial tone, dial a valid telephone number, and wait for the other side (the server process) to pick up the phone. Then you must say “hello,” identify yourself, and so on. This is a protocol from which you cannot deviate if you want the call to be made successfully through the telephone network, and it is clear why such a protocol is needed. The same is true of a computer program attempting to talk to another computer program through a computer network. The design of efficient and effective networking protocols for different network services is an important area in computer science.

1.2 IP Addresses and Domain Names

On the Internet, each host has a unique IP address, represented by a 32-bit number (four bytes). For example, tiger, a host at Kent State, has the IP address 131.123.38.172 (Figure 1.2). This dot notation (or quad notation) gives the decimal value (0 to 255) of each byte.1 Similar to a telephone number, the leading digits of an IP address are like country codes and area codes while the trailing digits are like local numbers. A host may be configured with a fixed IP or may obtain an IP address assigned to it on-the-fly as it boots up and attempts to connect to the network initially.
FIGURE 1.2: IP Address
Image
Because of their numerical nature, the dot notation is easy on machines but hard on users. Therefore, each host also has a unique domain-based name composed of words, rather like a postal address. For example, the domain name for tiger is tiger.cs.kent.edu (at Department of Computer Science, Kent State University). And the domain name for the author’s IT consulting website is sofpower.com where the companion website for this text book (sofpower.com/dwp, the DWP website) is located.
With the domain names, the entire Internet host namespace is recursively divided into disjoint domains. The address for tiger puts it in the kent subdomain within edu, the generic top-level domain (generic TLD) for educational institutions. Other generic TLDs include org (nonprofit organizations), gov (government offices), mil (military installations), com (commercial outfits), net (network service providers), info (information sources), name (individuals), uk, (United Kingdom), cn (China), and so forth. In June 2011, the Internet Corporation for Assigned Names and Numbers (ICANN) began to allow the registration of user-owned TLDs by corporations and governments; such private TLDs are expensive to register and maintain.
Within a local domain (e.g., cs.kent.edu), you can refer to computers by their host name alone (e.g., loki, dragon, tiger), but the full address must be used for hosts outside.
Figure 1.3 shows the Internet domain name hierarchy. Each node of the DNS tree has a name (case insensitive) and the name of the root node is a single period (.). A full domain name is formed by connecting all names leading from the host name to the root of the DNS tree. Following are some example full domain names:
tiger.cs.kent.edu.
dwp.sofpower.com.
FIGURE 1.3: The Domain Name Hierarchy
Image
Often, the trailing period (.) can ...

Inhaltsverzeichnis