WT Unit I
WT Unit I
1956
Approved by AICTE, COA and BCI, New Delhi
B20CIO503
Web Technology & its Application
ASSOCIATE PROFESSOR
Dr. G.ARULKUMARAN,M.E.,Ph.D., School of Computing & Information Technology,
REVA University, Bengaluru.
Contact: g.arul.kumaran@reva.edu.in
Design dynamic and interactive web pages by embedding Java Script code
in HTML.
Web Essentials
OUTLINE
Clients, Servers, and Communication.
The Internet-Basic Internet Protocols -The World Wide Web.
HTTP request message-response message-
Web Clients Web Servers-Case Study. Markup Languages: XHTML.
An Introduction to HTML History-Versions-Basic XHTML Syntax and Semantics-
Some Fundamental HTML Elements-Relative
URLs-
Lists Tables-Frames-Forms-XML
Creating HTML Documents. Representing
Web Data: XML-Documents and Vocabularies-Versions and Declaration
Namespaces JavaScript andXML
Brief Questions
What is web?
Write some websites and web browser names which you know.
11/29/2024 Reva_5thSem_OE_WT_Unit_I 8
Basic Terminologies
What is web technology?
Definition 1: Web Technology refers to the various tools and techniques that are
utilized in the process of communication between different types of devices over the
internet. A web browser is used to access web pages. Web browsers can be defined as
programs that display text, data, pictures, animation, and video on the Internet.
Entertainment & Lifestyle Fake News & Spread of illegal And Unethical material
11/29/2024 Reva_5thSem_OE_WT_Unit_I 12
11/29/2024 Reva_5thSem_OE_WT_Unit_I 39
11/29/2024 Reva_5thSem_OE_WT_Unit_I 43
11/29/2024 Reva_5thSem_OE_WT_Unit_I 44
11/29/2024 Reva_5thSem_OE_WT_Unit_I 45
11/29/2024 Reva_5thSem_OE_WT_Unit_I 46
11/29/2024 Reva_5thSem_OE_WT_Unit_I 47
11/29/2024 Reva_5thSem_OE_WT_Unit_I 48
11/29/2024 Reva_5thSem_OE_WT_Unit_I 49
11/29/2024 Reva_5thSem_OE_WT_Unit_I 50
11/29/2024 Reva_5thSem_OE_WT_Unit_I 51
11/29/2024 Reva_5thSem_OE_WT_Unit_I 52
11/29/2024 Reva_5thSem_OE_WT_Unit_I 53
11/29/2024 Reva_5thSem_OE_WT_Unit_I 54
11/29/2024 Reva_5thSem_OE_WT_Unit_I 55
11/29/2024 Reva_5thSem_OE_WT_Unit_I 56
Web Clients
Many possible web clients:
Text-only “browser” (linux)
Mobile phones
Robots (software-only clients, e.g., search engine “crawlers”)
Any web browsers like IE, Chrome, Firebox.
11/29/2024 Reva_5thSem_OE_WT_Unit_I 57
Web Browsers
Standard features
Save web page to disk.
Find string in page.
Fill forms automatically (passwords, CC numbers, …).
Set preferences (language, character set, cache and HTTP parameters).
Modify display style (e.g., increase font sizes).
Display raw HTML and HTTP header info (e.g., Last- Modified).
Choose browser themes (skins).
View history of web addresses visited.
Bookmark favorite pages for easy return.
11/29/2024 Reva_5thSem_OE_WT_Unit_I 58
Web Servers
Basic functionality:
Receive HTTP request via TCP.
Map Host header to specific virtual host (one of many host names sharing an
IP address).
Map Request-URI to specific resource associated with the virtual host.
File: Return file in HTTP response.
Program: Run program and return output in HTTP response.
Map type of resource to appropriate MIME type and use to set Content-Type
header in HTTP response.
Log information about the request and response.
11/29/2024 Reva_5thSem_OE_WT_Unit_I 59
Types of Web Servers
i. httpd: UIUC, primary Web server c. 1995 (On Linux platform)
ii. Apache: “A patchy” version of httpd, now the most popular server
(esp. on Linux platforms)
iii. IIS: Microsoft Internet Information Server.
iv. Tomcat:
Java-based
Provides container (Catalina) for running Java servlets (HTML-
generating programs) as back-end to Apache or IIS
Can run stand-alone using Coyote HTTP front-end
11/29/2024 Reva_5thSem_OE_WT_Unit_I 60
Tomcat Web Server
HTML-based server administration
Browse to http://localhost:8080 and click on Server Administration
link
localhost is a special host name that means “this machine”
Some Connector fields:
o Port Number: port “owned” by this connector.
o Max Threads: max connections processed simultaneously.
o Connection Timeout: keep-alive time.
11/29/2024 Reva_5thSem_OE_WT_Unit_I 61
Secure Server
Since HTTP messages typically travel over a public network, private
information (such as credit card numbers) should be encrypted to
prevent eavesdropping
https URL scheme tells browser to use encryption
Common encryption standards:
o Secure Socket Layer (SSL)
o Transport Layer Security (TLS)
11/29/2024 Reva_5thSem_OE_WT_Unit_I 62
Secure Server
11/29/2024 Reva_5thSem_OE_WT_Unit_I 63
11/29/2024 Reva_5thSem_OE_WT_Unit_I 64
11/29/2024 Reva_5thSem_OE_WT_Unit_I 65
11/29/2024 Reva_5thSem_OE_WT_Unit_I 66
11/29/2024 Reva_5thSem_OE_WT_Unit_I 67
11/29/2024 Reva_5thSem_OE_WT_Unit_I 68
<b> Reva Unversity, Bengaluru </b>
11/29/2024 Reva_5thSem_OE_WT_Unit_I 69
<HTML>
<HEAD>
</HEAD>
<BODY>
</BODY>
</HTML>
11/29/2024 Reva_5thSem_OE_WT_Unit_I 70
11/29/2024 Reva_5thSem_OE_WT_Unit_I 71
<!Doc Type HTML>
<HTML>
<HEAD>
<Title> my first web page
</Title>
</HEAD>
11/29/2024 Reva_5thSem_OE_WT_Unit_I 80
11/29/2024 Reva_5thSem_OE_WT_Unit_I 81
11/29/2024 Reva_5thSem_OE_WT_Unit_I 82
11/29/2024 Reva_5thSem_OE_WT_Unit_I 83
11/29/2024 Reva_5thSem_OE_WT_Unit_I 84
11/29/2024 Reva_5thSem_OE_WT_Unit_I 85
11/29/2024 Reva_5thSem_OE_WT_Unit_I 86
11/29/2024 Reva_5thSem_OE_WT_Unit_I 87
11/29/2024 Reva_5thSem_OE_WT_Unit_I 88
11/29/2024 Reva_5thSem_OE_WT_Unit_I 89
11/29/2024 Reva_5thSem_OE_WT_Unit_I 90
11/29/2024 Reva_5thSem_OE_WT_Unit_I 91
11/29/2024 Reva_5thSem_OE_WT_Unit_I 92
11/29/2024 Reva_5thSem_OE_WT_Unit_I 93
11/29/2024 Reva_5thSem_OE_WT_Unit_I 94
11/29/2024 Reva_5thSem_OE_WT_Unit_I 95
11/29/2024 Reva_5thSem_OE_WT_Unit_I 96
11/29/2024 Reva_5thSem_OE_WT_Unit_I 97
11/29/2024 Reva_5thSem_OE_WT_Unit_I 98
11/29/2024 Reva_5thSem_OE_WT_Unit_I 99
11/29/2024 Reva_5thSem_OE_WT_Unit_I 100
11/29/2024 Reva_5thSem_OE_WT_Unit_I 101
11/29/2024 Reva_5thSem_OE_WT_Unit_I 102
11/29/2024 Reva_5thSem_OE_WT_Unit_I 103
11/29/2024 Reva_5thSem_OE_WT_Unit_I 104
11/29/2024 Reva_5thSem_OE_WT_Unit_I 105
11/29/2024 Reva_5thSem_OE_WT_Unit_I 106
11/29/2024 Reva_5thSem_OE_WT_Unit_I 107
11/29/2024 Reva_5thSem_OE_WT_Unit_I 108
11/29/2024 Reva_5thSem_OE_WT_Unit_I 109
11/29/2024 Reva_5thSem_OE_WT_Unit_I 110
11/29/2024 Reva_5thSem_OE_WT_Unit_I 111
11/29/2024 Reva_5thSem_OE_WT_Unit_I 112
eXtensible Markup Language
Although HTML is widely used for formatting and structuring
Web documents, it is not suitable for specifying structured data
that is extracted from databases
A new language—namely XML has emerged as the standard
for structuring and exchanging data over the Web.
A markup language is used to provide information about a
document.
Tags are added to the document to provide the extra
information.
XML tags give a reader some idea what some of the data
means
XML and HTML have a similar syntax … both derived from
113
SGML
11/29/2024
.
Reva_5thSem_OE_WT_Unit_I
The Basic Rules
XML is case sensitive.
All start tags must have end tags.
Elements must be properly nested.
XML declaration is the first statement.
Every document must contain a root element.
Attribute values must have quotation marks.
Certain characters are reserved for parsing.
114
11/29/2024 Reva_5thSem_OE_WT_Unit_I
Encoding
• Jscript
• Microsoft’s version of JavaScript
<html>
<head><title>My Page</title></head>
<body>
<script language="JavaScript">
document.write('This is my first
JavaScript Page');
<html>
<head><title>My Page</title></head>
<body>
<script language=“JavaScript">
document.write('<h1>This is my first
JavaScript Page</h1>');
</script>
</body> HTML written
</html> inside JavaScript
<html>
<head><title>My Page</title></head>
<body>
<p>
<a href="myfile.html">My Page</a>
<br />
<a href="myfile.html"
onMouseover="window.alert('Hello');">
My Page</A>
</p>
</body> JavaScript written
</html> An Event
inside HTML
<form name="alertform">
Enter your name:
<input type="text" name="yourname">
<input type="button" value= "Go"
onClick="window.alert('Hello ' +
document.alertform.yourname.value);">
</form>