HTML ch1
HTML ch1
1. WWW:
• The World Wide Web abbreviated as WWW or W3 and commonly known as the Web.
WWW is a system of interlinked hypertext documents accessed via the Internet, With a
web browser, one can view web pages that may contain text, images, videos, and other
multimedia, and navigate between them via hyperlinks.
2. HyperText Markup Language (HTML):
It is the main markup language for displaying web pages and other information that can
be displayed in a web browser
3. Website:
• Website is a set of related web pages containing content such as text, images, video,
audio, etc. A website is hosted on at least one web server, accessible via a network
such as the Internet or a private local area network through an Internet address known
as a Uniform Resource Locator (URL). All publicly accessible websites collectively
constitute the World Wide Web (WWW).
4. Web Application:
A web application or web app is any software that runs in a web browser, It is created
in a browser-supported programming language such as the combination of
JavaScript, HTML, CSS etc. and relies on a web browser to render the application.
5. Web Pages:
A web page is a document, typically written in plain text distributed with formatting
instructions of HyperText Markup Languages like HTML, XHTML A webpage may
incorporate elements from other websites with suitable markup anchors.
The pages of a website can usually be accessed from a simple Uniform Resource
Locator (URL) called the web address.
HTML documents describe web pages. HTML documents contain HTML tags and
plain text. HTML documents are also called web pages.
There are two types of web pages i.e., static and dynamic.
A static web page is a web page that is delivered to the user exactly as stored. Static web
page displays the same information for all users, from all contexts, subject to modern
capabilities of a web server to negotiate content-type or language of the document where such
versions are available and the server is configured to do so.
Static web pages are often HTML documents stored as files in the file system and made
available by the web server over HTTP.
ADVANTAGES:
Quick and easy to put together, even by someone who does not have much experience.
DISADVANTAGES:
Difficult to maintain when a site gets large.
DISADVANTAGES:
Personalized pages are not very cache friendly.
Requires a basic minimum knowledge of the language being used.
Scripts need more consideration when uploading and installing, particularly to Unix-
related servers.
6. Web Publishing:
Web publishing, or "online publishing," is the process of publishing content on the
Internet.
It includes creating and uploading websites, updating webpages, and posting blogs online
and the published content may include text, images, videos, other types of media.
In order to publish content on the web, we need three things:
8. Web Browser:
A web browser (commonly referred to as a browser) is a software application for
retrieving, presenting and traversing information resources on the WWW.
An information resource is identified by a Uniform Resource Identifier/ Locator
(URI/URL) and may be a web page, image, video or other piece of content.
Hyperlinks present in resources enable users easily to navigate their browsers to
related resources.
CLIENT-SERVERS AND COMMUNICATION
Request Line: The first line of the header is called the request line, followed by optional
request headers.
The request line has the following syntax:
request-method-name request-URI HTTP-version
where,
request-method-name: HTTP protocol defines a set of request methods, e.g. POST,
HEAD, and OPTIONS. The client can use one of these methods to send request to the
server.
request-URI: Specifies the resource requested.
HTTP-version: Two versions are currently in use: HTTP/1.0 and HTTP/1.1
Examples of request line are:
Host: www.xyz.com
Connection: Keep-Alive
Accept: image/gif, inage/jpeg,*/*
Accept-Language: us-en, fr, cn
HTTP Request Methods:
HTTP protocol defines a set of request methods. A client can use one of these reque
methods to send a request message to an HTTP server. The methods are:
1. GET: A client can use the GET request to get a web resource from the server.
2. HEAD: A client can use the HEAD request to get the header that a GET reque would
have obtained. Since the header contains the last-modified date of the data this can be
used to check against the local cache copy.
3. POST: Used to post data up to the web server.
4. PUT: Ask the server to store the data.
5. DELETE: Ask the server to delete the data.
6. TRACE: Ask the server to return a diagnostic trace of the actions it takes. 7.
OPTIONS: Ask the server to return the list of request methods it supports.
8. CONNECT: Used to tell a proxy to make a connection to another host and simply
reply the content, without attempting to parse or cache it. This is often used to make
SSL connection through the proxy.
RESPONSE MESSAGE
The format of the HTTP response message is shown in Fig.
Status Line: The first line is called the Status Line, followed by optional response
header(s).
The status line has the following syntax:
HTTP/1.1 200 OK
HTTP/1.0 404 Not Found
HTTP/1.1 403 Forbidden
Response Headers: The response headers are in the form name:value pairs: response-
header-name: response-header-value1, response-header-value2,...
Examples of response headers are: