WEB PROGRAMMING Unit 1 Notes
WEB PROGRAMMING Unit 1 Notes
UNIT I
INTRODUCTION
The World Wide Web (WWW) is a collection of linked documents, or pages, stored on
millions of computers and spread over the entire Internet.
The term WWW comes from the notion that individual nodes of information are linked with
hypertext, and this creates a ‘web’ of information.
The documents on the web are written in HTML (Hypertext Markup Language) that defines their
appearance and layout, and creates the links to other documents.
These links appear in text as an underlined word or phrase, colored in blue called hypertext link
or hypermedia.
You can access sites all over the world.
You can connect from your personal computer to thousands of web servers simply by clicking on
a hyperlink, or by entering a specific address.
The Web and the Internet
The Web is that it is built in the Internet.
The basis for the web is the Internet.
The Web makes use of many of the mechanisms that Internet provides.
The Internet is the physical aspects – computers, networks and services.
It allows us to connect to thousands of other computers across the world.
The Web is an abstraction and common set of services on top of the Internet.
It is the set of the protocols and tools that let us share information with each other.
The Web was developed with the concept of ‘universal readership’ ie, any participating system
should be able to read the information on any connected system using a common set of tools
such as WWW servers or WWW browsers.
Evolution of World Wide Web
Tim Berners-Lee, a British engineer working at CERN (Conseil Europeenne pour la Recherche
Nuclearie) has a bright idea to make CERN’s mountain of research documents more accessible
and manageable.
Berners-Lee had this idea of universal readership, that the text of each document could contain
references (or links) to other documents.
And these links would be live, so that the reader could make an immediate move directly to the
document being referred to, or even to specific place in it.
It was not an entirely new concept.
Hypertext, as it was called, was already available for use on some desktop computers.
The new element was the idea of linking to documents on other computers on different networks.
A new mega network was born World Wide Web (Web) in short.
In the words of Tim Berners-Lee the World Wide Web is “the universe of network- accessible
information, an embodiment of human knowledge”.
The first World Wide Web computers were created at CERN.
World Wide Web Consortium (W3C)
The World Wide Web Consortium was created in October 1994 to lead the World Wide Web to
its full potential by developing common protocols that promote its evaluation and ensure its
interoperability.
W3C has more than 400 member organizations around the world and has earned international
recognition for its contributions to the growth of the web.
In just over five years, W3C has developed more than 20 technical specifications for the web’s
infrastructure.
W3C is already laying the foundation for the next generation of the web.
W3C’s technologies will help make the Web a robust, scalable and adaptive infrastructure for a
world of information.
Features of World Wide Web
1. The ability to easily deliver information in any format, to/from a wide range of computing
platforms.
On the web you can access information from many sources line your competitors,
customers, technology providers, international universities, financial institutions and
many other places.
This information is on many different computing platforms.
The web has become a standard method of providing distributed information to many
different platforms.
2. Simplified access to the Internet
It provides a graphical interface.
It supports multimedia (sound, video, as well as graphics).
It is based on standards, so sharing of documents is much easier than before.
3. The easy availability of extensive information on a wide range of topics
The web contains an endless variety of information including up-to-the minute weather
maps or traffic reports, online publications, language lessons with sample pronunciations.
Movies, simulations and resource information on almost every topic.
4. The Web is interactive
Interactivity is the ability to ‘talk back’.
The act of selecting a link and jumping to another Web page to go somewhere else on the
Web is a form of interactivity.
Uses of World Wide Web
The Web is used in many creative and interesting ways today, and new applications are being
introduced every day.
1. Education tool
As the World Wide Web allows universal access to words, pictures, graphics and
sounds of all kinds, it allows faculty and students to share information in ways never
before possible.
Some academic uses of the Web include research, electronic journals, sharing
information, etc.
2. Search tool
One of the most commonly used capabilities of the Web is its ability to help you locate
just about anything.
Several Web sites are designed to help you in that regard.
3. Business Tool
Web is used by companies all over the world for various purposes, for external
communication, to share product information, to learn about the marketplace, to share in
process work with business partners and for internal sharing of information.
Some of the topics that are particular available on the Web are:
1. Travel: Transport, maps, tourism and accommodation.
2. Entertainment: Film and theatre, TV, online music, radio and video and fan clubs.
3. Leisure activities: Sports, hobbies and crafts.
4. Company information: Reports, products and services
5. Academic: Education and research information.
6. Communications: E-mail, news and discussion groups, and online chat.
7. Commerce: online shopping, auctions and private sales.
1. A server is most often centralized, usually on a large computer. A client usually runs in
multiple instances on desktops or other small stations throughout a network.
2. A server is passive. It does little or nothing until it receives an explicit request from a client
to do something. A client is active since it is a tool in the hands of a user.
3. A server usually runs continuously waiting for requests while a client runs only on demand.
4. A server usually runs in the background and interfaces only with other software and rarely
interfaces directly with users whereas a client is usually invoked by a user and takes
commands from a user.
5. A server must handle multiple tasks concurrently since many clients may be requesting its
services simultaneously. A client usually works for one person and does one thing after
another in sequence as the user commands it.
Web server is used to publish the documents on the web.
It is responsible for document storage and retrieval.
It sends the document requested back to the requesting client.
World Wide Web Browsers
A web browser also known as web client, is a software interface.
It enables you to read web pages and move from an HTML document on one computer to
another HTML document on any other computer on the Internet.
Mosaic was the first browser, while Netscape and Internet Explorer are the commonly used
browsers now-a-days.
Both of these are graphical browsers, (ie) they can display graphics as well as text.
Most modern web browsers can present multimedia information including sound and video,
through they require plug-ins for some formats.
Depending on the web browser used, the final appearance of a document may vary significantly.
Hypertext Transfer Protocol (HTTP)
HTTP is the internet protocol responsible for transferring and displaying web pages.
When HTTP link is pass through, the browser will connect to the appropriate machine, retrieve
the document and close the connection.
The HTTP server will tell the browser about the type of document it is sending so that browser at
the client side can display it correctly.
It provides a way for web clients and servers to communicate with one another, primarily
through the exchange of messages from clients and servers.
The message types for HTTP are classified in four parts:
1. Connection: This type of message occurs when a client tries to connect to a specific web
server and displays a Connecting to HTTP server message. If the client can’t make the
connection, the attempts will usually time out and the browser displays a Connection timed
out message.
2. Request: This is where the client asks for the Web resource it’s looking for. This includes
the protocol to be used, the name of the object to be provided and information about how the
server should respond to the client.
3. Response: If the server can deliver the requested object, it responds in the manner requested
by the client to deliver the necessary data. If it can’t deliver, it sends an error message
explaining the reason for not delivering the message.
4. Close: After the information has been transferred in response to the request, the connection
between client and server will be closed.
Universal Resource Locator (URL)
A web browser receives information from web servers and presents that information to the end
user.
To request information from the server, the browser uses a special addressing scheme known as a
Universal Resource Locator.
URLs are used globally to name and access all web resources.
Syntax:
Protocol/data source://domain name: port number/ <directory path>/ <object name>#<spot>
Example:
http://www.yahoo.com/education/FIIT/home.htm
The URL is composed of six parts:
1. Protocol/Data Source: For network resources, this will usually be the name of the protocol
used to access the data that resides on the other end of the link.
Syntax:
ftp:// points to a file accessible through the FTP protocol.
gopher:// points to a file system index accessible through the gopher protocol.
http:// points to a hypertext document accessible through the hypertext transfer protocol.
mailto:// links to an application that allows you to compose a message to be sent to a
predefined address using e-mail.
news:// points to a usenet newsgroup and uses the network news transfer protocol (NNTP)
to access the information.
telnet:// links to a remote login on another internet computer, typically to select from a
system of indexed databases.
WAIS:// points to a Wide Area Information Server on the Internet and provides access to a
system of indexed database.
file:// which indicates that it’s a local file, rather than a public Web page.
2. Domain Name: This is the name for the Web server where the desired web page or other
resource resides. A domain name system locates on organization on other entity on the
Internet, i.e. it translates the easily recognizable server names into IP addresses.
IP addresses are the addresses which the IP protocol uses to identify hosts and to route data
to them. Every host must be assigned an IP address that can be used in actual
communications.
DNS is used to convert an IP address to specific domain name.
3. Port Address: The default port address is ‘80’. This number identifies which process address
a web session needs to connect with.
4. Directory Path: This is the location of the web page in the web server’s file system.
5. Object Name: This is the actual name of the HTML file for the desired web page or the
name of the other resource that may be required.
6. Spot: Sometimes, getting users to the HTML file is not enough. You would want to drop
them at a particular location within the file. By preceding the name of an HTML anchor with
a hash sign (#) and taking it into the HTML file name, you can direct a browser to jump to a
specific location.
Web Pages and Web Sites
A web page is a page containing information and instructions.
The information can be text, images, audio or video.
The instructions tell the browser how to present the information to the end-user.
Instructions are specified in Hyper Text Markup Language (HTML).
A web site is a collection of related Web pages (files) stored on a web server.
Web sites are hosted on web servers.
Some companies and organizations own and maintain their own web server to host their own
web site.
Home Page
Home page is the cover of a particular web site.
The home page is the main or opening panel for a company, educational institutions, government
or individual web site.