Chapter 1 (3)
Chapter 1 (3)
Chapter 1 (3)
INTRODUCTION TO WEB
PAGES
The Internet
Internet is a large number of computers connected
together to share information.
It is a collection of networks (a network of networks)
sharing digital information via a common set of
networking and software protocols.
It is a network of networks that consists of millions of
private, public, academic, business, and government
networks, of local to global scope, that are linked
together.
Nearly anyone can connect their computer to the
Internet and immediately communicate with other
computers and users on the network.
The Internet has become an industry in its own
respect.
The Internet…
The Internet began in the late 1960s as an experiment in the
design of robust computer networks.
The goal was to construct a network of computers that could
withstand the loss of several machines without
compromising the ability of the remaining ones to
communicate.
Funding came from the U.S. Department of Defense, which
had a vested interest in building information networks that
could withstand nuclear attack.
The result was a network called ARPANET developed by
Advanced Research Projects Agency (ARPA) of the United
States Department of Defense.
Electronic mail
Discussion Groups
Internet Chat
Search Services
The Internet…
7
Web Programming
World Wide Web
World Wide Web (WWW) is a collection of
interconnected documents and other resources
linked by hyperlinks.
Hyperlink is also called hypertext or simply link
Hyperlinks are reference or navigation element in
a document to another document.
WWW is a massive storehouse of information that
resides on internet.
WWW was created by Tim Berners-Lee in 1989 at
the European Nuclear Research Center (CERN) in
Switzerland.
www (world wide web)
World Wide Web...
Berners-Lee created WWW by bringing together
three technologies that were already in
development at the time:
Markup Language – a system of instructions and
formatting codes embedded in text.
Hypertext – a means of embedding links to other
documents, images, and other elements in a
document.
Internet – a global network of computers where clients
request service and servers provide services
Figure 1.2 How WWW works: retrieving a web page from server by clients
Introduction (cont’d)
15
A web page
A document with a mark-up language called HTML
The basic unit of information storage on the www
iii) Active
Static document
Fixed content document and stored on a server
The client can get only one copy of that document
The HTML is used to create static document
Web Programming
16
Dynamic Documents
Don’t exist in predefined format
Created by a web server
When a browser request arrives, the web server runs
an application that creates the dynamic content.
The server software returns the output of the program
as a response to the browser
A fresh document is created for each request
The content of dynamic document can vary from one
document to another.
Eg: CGI common gateway interface
Is a technology that creates and handles dynamic
documents Web Programming
17
Web Programming
URI, URL, and URN
URI stands for Uniform Resource Identifier, which is used to
identify resource on the web.
A URI identifies a resource either by location, or a name, or
both.
More often than not, most of us use URIs that defines a
location to a resource.
ftp://ftp.is.co.za/rfc/rfc1808.txt
tel:+1-816-555-1212
telnet://melvyl.ucop.edu/
file:///home/username/books/
Software Expenses
Remember that server-licenses often are higher than client-
licenses.
Also note that server-licenses might have limits on number of
users.
Web Hosting...
Labor Expenses
Don't expect low labor expenses.
You have to install your own hardware and software.
You also have to deal with bugs and viruses, and keep your server
constantly running in an environment where everything could
happen.
To let others view your web pages, you must publish your web
site.
To publish your work, you must copy your site to a web server.
Your own PC can act as a web server if it is connected to a
network.
The most common approach is to use web hosting providers.
Web hosting means storing your web site on a public web
Web Hosting...
Some of the web hosting providers are:
http://www.justhost.com/
http://www.ipage.com/
http://www.fatcow.com/
http://www.webhostinghub.com/
Traffic Volume
Study the ISP's traffic volume restrictions.
Make sure that you don't have to pay a fortune for
unexpected high traffic if your web site becomes popular.
Database Access
If you plan to use data from databases on your
web site, make sure your ISP supports the
database access you need.
Domain Name System (DNS)
While it's easy to remember the name of a website, it's quite hard
to remember the exact IP address.
For example, everybody knows about www.google.com, but if you
had to remember "74.125.45.100", things would have been much
harder.
DNS solves this problem.
Every time a domain name is typed in a browser it is automatically
passed on to a DNS server, which translates the name into its
Domain Name System (DNS)…