Web Technology
Web Technology
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 server
Request for
Payment gateway
to response Bank
order
WS
response
Server response
• It is used to connect
external devices to the
computer
• These devices
communicate with the
computer using these
ports
Software Ports
• It is used to connect a client computer to a
server to access its services like HTTP,
FTP, SMTP etc,
• To distinguish the ports, the software ports
are given unique numbers
• The purpose of software ports is to identify
different services like e-mail, file transfer
etc, running on a single server computer
Software Ports
• Port number is a 16-bit number which when
added to a computer’s IP address / URL,
can be used for communicating with a
particular service available on that server
• For example :
http://www.google.co.in:80
It runs a special
purpose networking
software that
contains a database
of domain names
and IP addresses
DNS Servers
• Adobe Dreamweaver
Microsoft Expression
HTML
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.,
Attributes
•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>
bgcolor
• 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”>
text
• 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”>
Adding comments in HTML document