Professional Documents
Culture Documents
Web Technology
Batches:
Mark Up Languages
SGML
HTML
Mr. Debojit Boro
Assistant Professor,Tezpur University,Napaam,Tezpur-784028
Multi-Tier Architecture
A client server architecture in which the presentation, the
application processing and data management are logically
separate process
Presentation tier
This is the topmost level of the application. The presentation tier
displays information related to such services as browsing
merchandise, purchasing, and shopping cart contents. It
communicates with other tiers by outputting results to the
browser/client tier and all other tiers in the network.
Application tier (Business Logic/Logic Tier/Data Access Tier/Middle Tier)
The logic tier is pulled out from the presentation tier and, as its own
layer, it controls an application’s functionality by performing detailed
processing.
Data tier
This tier consists of Database Servers. Here information is stored and
retrieved. This tier keeps data neutral and independent from
application servers or business logic. Giving data its own tier also
improves scalability and performance.
Three tier Architecture
WEB ARCHITECTURE
Web Clients, Servers, Authoring
Tools
Browsers:
Internet Explorer
Netscape Navigator
Mozilla
Servers
Apache
Internet Information Server
Personal Web Server
Web Authoring Tools
Any ASCII editor: edit, vim etc.
Netscape Composer
MSWORD
FrontPage
Web programming
Client Side
JavaScript, Visual Basic
Java Applet (in Java)
Server Side
Server Side Includes (SSI)
Common Gateway Interface (CGI)
May be written in C, perl etc.
Java Servlet (in Java)
HyperText Preprocessor (PHP)
Active Server Page (ASP)
Java Server Page (JSP)
Web Content
Characteristics
1. Documents marked up with procedural markup languages
contain clear instructions for the document-rendering program,
so that it produces output of the original content in a particular
format and style
2. The formatting instructions are likely to be specific to the
output medium, so the document containing the original content
interspersed with markup is not portable across different output
media.
Example
installing the latest release of a
piece of software, one might do this as follows:
<PROCEDURE ID="install">
<TITLE>Installing the software</TITLE>
<DESCRIPTION>To install this release, perform the following
steps:</DESCRIPTION> <LINK TYPE="steps"
<TARGET ID="download"/>
<TARGET ID="unstuff"/>
<TARGET ID="execute"/> </LINK>
</PROCEDURE>
Descriptive Markup Languages
SGML
HTML XML
<BOOK>
<PROFILE> <BODY>
<HTML>
<HEAD>
<TITLE>HEADER PAGE</TITLE>
</HEAD>
<BODY BGCOLOR="#80AA95">
<CENTER>
<H1> INTRODUCTION TO WEB TECHNOLOGY</H1>
<H3>By</H3>
<H2>Debojit Boro</H2>
</CENTER>
</BODY>
</HTML>
HTML Basic Text Formatting
<p> Write paragraph here </p>
<p align = “left”> Left-aligned paragraph </p>
<p align = “right”> Right-aligned paragraph </p>
<big> relatively bigger font size</big>
<small> relatively smaller font size </small>
<sub> subscript </sub>
<sup>superscript </sup>
<b> bold </b>
<i> italic </i>
<div> logical division </div>
HTML HYPERLINKS
Inter-Page Link
<A HREF = “URL”>anchored text </A>
Intra-Page Link
<A HREF = “#section”>Source text </A>
<A NAME = “section”>Target text </A>
<BASE
URL =
TARGET =
>
HTML LISTS
Un-ordered List
<UL>
Definition List
<LI>Item1</LI>
<DL>
<LI>Item1</LI> <DT>Term</DT>
</UL> <DD>Item1</DD>
Ordered List <DD>Item1</DD>
<OL> <DT>Term</DT>
<LI>Item1</LI> <DD>Item1</DD>
<LI>Item1</LI> <DD>Item1</DD>
</OL> </DL>
HTML TABLE
<TABLE> ATTRIBUTES
<TR>
ROWSPAN = nr
<TH> Header1</TH> COLSPAN = nc
<TH> Header2</TH> ALIGN = left | right | center
</TR> VALIGN = top | bottom
<TR> BGCOLOR = color code
<TD> Data</TD> BACKGROUND = URL of image
<TD> Data </TD>
</TR>
<CAPTION> Table Caption
</CAPTION>
</TABLE>
8: HTML FRAME
Normally, single page is displayed in a single
window.
Frame enables multiple pages to be
displayed in a single window
Frame partitions the window. Each partition
displays a page
HTML FRAME
<html>
<head>
<title>webtechnology</title>
</head>
<frameset rows="25%,*" border="0">
<frame src="webtech_head.html" name="head">
<frameset cols="20%,*" >
<frame src="webtech_index.html" name="index">
<frame src="webtech_main.html" name="main">
</frameset>
</frameset>
</html>
HTML FORM
Eg.
<base href="www.tezu.ernet.in"/>
<base target= "_parent"/>
HTML Link <link>
The <link> tag defines the relationship between a document and an
external resource.
The <link> tag is most used to link to style sheets.
Eg.
<head>
<link rel="stylesheet" type="text/css" href="theme.css" />
</head>
HTML Meta <meta>
The purpose of the meta element is to
provide meta-information about the
document.
Most often the meta element is used to
provide information that is relevant to
browsers or search engines like describing
the content of your document.
Some search engines on the WWW will use
the name and content attributes of the meta
tag to index your pages.
HTML 4.0 Event Attributes
Mouse Events
Not valid in base, bdo, br, frame, frameset, head, html,
iframe, meta, param, script, style, title elements.
Value Description
Attribute
onload script Script to be run when a
document loads
onunload script Script to be run when a
document unloads
Keyboard Events
Not valid in base, bdo, br, frame, frameset, head, html, iframe, meta,
param, script, style, and title elements.
Value Description
Attribute
onkeydown script What to do when key is
pressed
onkeypress script What to do when key is
pressed and released
onkeyup script What to do when key is
released
HTML Grammar
HTML has fixed set of tags and attributes defined
by 3 SGML DTDs ( for HTML 4.0)
The Strict DTD: defines those elements that are
not depreciated in HTML 4.0
The Transactional DTD includes the depreciated
elements with many older elements still in use
The Frameset DTD: Identical to Trans DTD.
<body> replaced by <frameset> tag