Professional Documents
Culture Documents
HTML
HTML
TCPIP consists of protocols., applications. and services. Protocols enable a server application to
services, and the elient application to use those services. It is possible to design a new protocol and add
TCP/IP.
The Intermet is a large worldwide of computers. which uses TCP/IP
network
communieation protocol. Since TCP/IP Consists of various services, the Internet is in
as the under
a position to
those servVIces to all
o
computers connected to the lnternet.
be sent or
recet
INTERNET BASICS PAGE 11
CHAP 01
Protocol
As a
FTP
tor copving iles between two computers. The client and the server applications both use
TP is a protocol of the file is identical to the original.
to ensure that the new copy
for communication
ELNET
IP application and protocol tor connecting local computer to a remote computer.
a a
wherein
This introduces Client/Server terminology the Client.
information is termed as
T h e desktop computer requesting tor
The computer serving intormation trom a central location is termed as the Server.
Files that travel across the largest network in the world, the Internet, and carry information from a Sen
to a Client that requested them are called Web Pages. The individual who
called Web Developer.
develops these web pages
WEB SERVER
Web Pages are created using HTML syntax. These pages must be organized and stored at a cent
computer.
The organization of web pages into directories and files stored on the HDD of a central computer is calla
Web Site creation
CHAP 02
INTRODUCTION TO HTML
ctore
Computers. Which sto web pages in the form PAGE 13
ot
ey act like se
act like service directories and files and
called
Servers. Ihey
providers that service the need for
provide these files to be read, are
amputer runs special software called Web information.
The
Serve
Web Site Management.
Server software that allows:
client's request for informatio
and
Respond to client's request
to aa client's Dy nrai.
request by
providing the page with the
p
required information.
Some
most popular software, which Servers run
to allow them
is Internet Intormation Server (IIS), to
respond to client request for
Apache Web
i n t o r m a t i o ,
Computers that offer the facility to read information stored in web pages are called Web Clients.
Web Clients run special software called a Browser that allows them to:
Some of the most popular Browser software that clients run to allow them to query Web Servers for
information is Netscape Communicator, Internet Explorer.
2. Reguest
ns Seen in diagram 2.1, a client's Browser
Diagram 2.1
Establish Connection Web Server
Protovl:/APaddress
r eample. if the lP
address tor the SCT Server is 131.100.2.107 and communication must bC
S g l t P then any client attempting to conneet would have to pass the i establi-
address
http13.100.2.107 to the ISP whose
gateway is being used to access the
lnct
rooscan
.lt
be contigured to run on
port numbers other than the default port number. Valid values
a
protocol is
contigured other
to run on ar
ommunication link with the Web port
any number then the client when trying to
estab=
the IP address. Server must specify the
port number along with the protocol name =
Thus the complete syntax to access and connect to
any server
Protocol://sernername:port number. would be:
hus the request for a web page can be two-fold: objects like GF
The web page itself.
The request for the objects referenced by the web page i.e. GIF's, JPEC:
Executable programs and so on. JPEG's. Audio
hen an appropriately structured, HTTP request, is received irom a Browser
Nser. the
Files, Videu ile
exists, the server
ds
cate the web page requested. If the Web Page responds
by Web
DWser.
is
sent aus a
respor
prOVidngServer
the will tr
the Web Page is not found, an appropriate Error Message pare t
wiln the o
browse,lo t
wii
rcqucst
Such a
The Web Server resjonds to lhe reqnst being sCnl by the browser
broiwsC?.
by the
Terminates The Connection
Serv csponsibiliiy to lemiate the 'TC P/P comectiom witlh the Browser aller it revpods to the
S e r v e r ' s iespo
the
It is wliest. T l o w e v e r , both the|
lowever, the Browser and the Web Server must manage an unexpected closing of
Browser's rcquest.
a as well. In other words, il ihe user clicks on he Browser's STOP butlon, the Browser must
a s well.
c o m e c t i o n
a
close the c o n n e c t i o
HTML Tags
An HTML. tag is a signal to
Tags are instructions t a t are embedded directly into the text of the document,
hrow text up on the screen. By convention all HTMI
browser that it should do something ofher than just
bracket ) .
tags begin with an open angle bracket (<) and end with a close angle
Paired Tags
tlanks the text. For example the <B tag
i s
elosing tag
turns the eflect oft.
activates the effect and the closing tag
ne
opening tag
KnoWn as
Afribules ot a lag.
Is
to an HTML ag attributes can be associated
Additional intormation supplied spue. Muliple
the tag., separated
by a
uallW
U l w l lap
Habed Wine
aryng Ilandles
Habed Tap
Shurt Blade Barbel Tape (S1s1
bow ntemet
lCsing puposes wlile crcatny this c
The browser uscd lor puge
hw ap'orer r
has
ialwiays
vIeWed i browser
IMI.
lew i
been Netcap t31
i
hits been
a
ew
lile CIcalcd
Aller the lext
the ile
re-VIewed lo register l e
will be
thein
chianges
altribles
1
wlhese
s
latio. hh will be addedNetCape ts 12
preeta
applab."
tag he
WithinBODY>
thes¢ tags created using
two distinet sectionsdeseribed
are the <HEAD/HEAD> tags and the
BODY tags. These sections are below.
Document Head
Intormation placed in this section is essential to the inner workings of the document and has nothing to do
with the content ot the document. With the exception of information contained within the <TITLE>
TITLE tags. all information placed within the <HEAD> </HEAD> tags is not displayed in the browser.
The HTML tags used to indicate the start and end of the head section are:
HEADTITLE>...<TITLE></HEAD>
Document Body
The tags used to indicate the start and end of the main body of textual information are:
<BODY>
BODY>
color, font size, font weight and so on can be specified as
Page defaults like background color, text
takes are:
the <BODY> tag. The attributes that the <BODY> tag
aributes of
CSS
CHAP
Background Set
default backpround-color properly to the
the
Formatting taag Is written in the C SS file. ind-color ofot a.an clement
background-color
(background-
color:)
CSS Background |Sets the background-image property ol an clement or of the
Formatting Written in the C'SS lile. document. Thies ttag in
(background-
image :)
TEXT
Changes the body text color from its dclault value to the
attribute. color specified with
Table 2.1
Example:
BODY STYLE
="hackground: url(starfield.gif); color: red:">
Note
The -gif tile
"starlield.gif" should be
specitied to where the -gif filepresent
should be in the current
exists. working directory. If not, a Relative path
Paraqraph breaks
textual material. The tag that provides this functionality is
A blank line always separates paragraphs in
this tag the browser, moves onto a new line, skipping one line between the previous
<P>, On encountering
line.
line and the new
It does.':
Output: dedicated path for data to Ílow along.
Channel is a repor*-*g
A on 1ts own, mere-Y
correction
about error can be
Dotner too much So a channel
transter tailed.
that the
to the processor
tast. those Ca
With
attributes along
anotrer
above
LDer channel has the
trom a
sourCe
DuIrer
t
data or t.e
transfer the
contents
you tor
It l e t s not
care
LWOrk. It does
end.
at journey's
Ler
data format.
a blank line),
Line Breakss continue on the same line (without
skipping
line and
not
next n e .
start of the
When te needs lo start
from a new
jumps to the
the D used. This tag simply
D tag should be
Output:
The early years
Note
As the number next to <H> (1, 2,. ..)
increases, the font size
actually decrea
eases.
Drawing Lines
The tag <HR> draws lines and
horizontal rules. This tag draws
wherever specified. The attributes to the
<HR> tag are:
a
uontal
horizontal line
ae
aeross the
whole page,
INTRODUCTION TO HTML PAGE 25
02
CHAP
Description
the center of the
rfrib ligns the
line
LEFT
on
the Rrowser
Wil aign
screen which
tlhe lefn
the line to
is
of
hy default, aligned
the screen
to screen
ALIGN
RIGHT will algn the line to the right of the sereen
ALIGN
will align the line
LIGN-CENTERthe to the center of the sereen
the size of nule
hanges ot the
of the i l e . Can be set to a fixed number of pixels, or to a percentage
IZE
Scts the width
WIDTH
sereen w Idth.
aN
alable
Table 2.2
Fample: site.
elome
to o u r W />
SIZE="4"
HR ALIGN- "left" WIDTH="10"
utput:
TEXT S T Y L E S
Example:
home page!</B>
B>Welcome to our
talics between
<l>...</>
text in
ITALICS. The tags used are
Displays
Underline <U>. . .
.
The tags used
are
UNDERLINED,
Isplays text as
Example: page! <IU
UWelcome to our home
Output:
elcome to our home page
web page.
the DEPL
FOCUS 3: sub-headings
displayed
on
USING HTML,
CWAD
PAGE 28
integer.
SIZE Indncatcs the amount of space to be left. SiZe accepts any
Table 2.3
Note
The SPACER command is understood only by the browser Netscape. There are
techniques that can be used to introduce space in the document (understood by all BrV
will be covered in the later Chapters. wsers)
Example:
Welcome to my site <BR />
SPACER TYPE =
Output:
</P>
LE"FONT-FAMILY: Comic
Table 2.4
Sans MS;
name,
hexadecimal o