Module2 WebTechAndArchitecture
Module2 WebTechAndArchitecture
DISCUSS….
• COMMUNICATION ON THE WEB
• WEB SERVER TECHNOLOGIES
• WEB DESIGNING
• STATIC AND DYNAMIC WEB PAGES
• SCRIPTS AND TYPES OF SCRIPTING LANGUAGES
• POPULAR SCRIPTING LANGUAGES
• CASCADING STYLE SHEET
• BASIC CONCEPTS OF HTML DOCUMENTS
We rely on different websites for
various purposes like…..
conformation
Web
Request for
server
Payment gateway
to response Bank
order
WS
response
Server response
www.dhsekerala.gov.in
Web
server
• It is a server computer that hosts
websites
• It enables us to deliver web pages or
services like e-mail, blog etc., to users on
the Internet
• It consists of a server computer that runs
a server OS and a web software
installed on it for providing services over
the Internet
Web
server
It runs a special
purpose
networking
software that
contains a
database of
domain names
and IP addresses
DNS
Servers
CLIENT
MySQL
Database
SERVER
Working of server side
scripts
1 The web page containing server side
scripts requested by the user
2 Server side scripts which executes and
access the result from the database
1. Container tag
2. Empty tag
Container tag or
element
• This type of html tag or elements require pair
tags, ie., a starting tag as well as an ending tag.
• Examples :
<html>…….. </html>
<head>……</head>
<title> …………….</title>
<body>……….</body>
Empty tag or
element
• This type of html tag or elements require just a
starting tag and not an ending tag.
• Examples :
<br>
<frame>
<hr>
<img> etc.,
Attribut
es
An attribute is a special word used
inside the tag to specify additional
information such as colour, alignment,
background etc.,
Examples :
bgcolour, background, type, align etc.,
Basic structure of HTML
document
Example of HTML
document
<html>
<head>
<title> This is the title of web page </title>
</head>
<body>
Hello, Welcome to the world of web pages !
</body>
</html>
<html>
tag
• It indicates that the document begins with
<html> tag and ends with </html> tag.
• DIR attribute :
• It is used to indicate the document direction.
• It can take two values “ltr” and “rtl”.
• It specifies whether the language direction is
from left to right or right to left.
• Example : <html dir = “ltr”>
<html>
tag Code Language
• LANG attribute : en English
• It specifies the fr French
language to be de German
used in the web it Italian
page. el Greak
• Example : es Spanish
<html lang = ar Arabic
ja Japanese
“en”>
hi Hindi
ru russian
<head>
tag
• It contains the head of an HTML document,
which holds information about the document
such as its title, scripts used, style definitions
etc.,
• It is also a container tag.
<title>
tag
• It is also a container tag pair that contains
the title of the HTML document, which will
appear in the web browser’s title bar.
• The search engines uses the Title to
identify the page.
• It is used inside the tag pair
<head>..</head>
<body>
tag
• It is also a container tag pair that specifies
the document body section.
• This part contains the content to be
displayed in the browser window.
• Some attributes of
<body>..</body> tag
• Background, bgcolour, text, link, alink,
vlink, leftmargin, topmargin etc.,
background
• It is an attribute of <body> tag.
• It sets an image as background for the
documents body.
• It makes the page more attractive.
• General format :
• <body background = “URL of the
picture”>
• Example:
• <body background = “school.jpg”>
To set an image as background for
a web page.
<html>
<head>
<title> Background Image </title>
</head>
<body background = “school.jpg”>
<H1> BEM HIGHER SECONDARY SCHOOL PALAKKAD
</H1>
</body>
</html>
bgcol
or
• It is an attribute of body tag.
• It specifies a colour for the background of the
document body.
• The value of bgcolor attribute can be given in
two ways: Color_name and Hex_number
• Example :
• <body bgcolor = “blue”>
tex
t
• It is an attribute of body tag.
• It specifies the colour of the text content in the
page.
• By default the browser displays the text in black
colour on a white or grey background.
• The value of text attribute can be given in two
ways: Color_name and Hex_number
• Example :
• <body text = “red”> or <body text =
“#ff0000”>
Link, alink and
vlink
• A hyperlink is an element, a text or an image
that we can click on, and jump into another
document or another section of the same
document.
• A hyperlink points to a whole document or to
a specific element within a document.
• link, alink and vlink are attributes of body
tag
• Link : it specifies the colour of the hyperlinks
that are not visited by the viewer. The default
colour is blue.
• Alink : it specifies the colour of the active
hyperlink. The link remains active only for the
moment the mouse is clicked on it. The default
colour is green.
• Vlink : it specifies the colour of the hyperlink
which is already visited by the viewer. The
default colour is purple.
Leftmargin and
Topmargin
• Leftmargin : it is used to leave some blank area
on the left side of the document. The value is
specified in pixels.
• Topmargin : it is used to leave some blank area
at the top edge of the document window.
The value is specified in pixels.
• For example :
<body leftmargin = “60” topmargin =
“70”>
Some common
tags
• Used for formatting the text contents in the
body section of the HTML document and
therefore they are called formatting tags.
1. HEADING TAGS <H1> to <H6>
– Main attribute of this tag is align.
– The possible values are left, right, center.
– Eg. <H1 ALIGN = “LEFT”> HEADER-1 </H1>
2. Creating paragraphs -
<P> tag
– It indicates a new paragraph and instructs the
browser to add a blank line before the paragraph.
– It is a container tag <P>……..</P>
– Main attribute of this tag is align.
– The possible values are left, right, center, justify.
– Eg. <P ALIGN = “LEFT”> paragraph content </P>