Professional Documents
Culture Documents
World Wide Web: (WWW", "Web" or "W3")
World Wide Web: (WWW", "Web" or "W3")
World Wide Web: (WWW", "Web" or "W3")
❑ Internet
➢Internet is a global system of interconnected computer
network.
➢ Massive network of networks.
➢ connecting millions of computers.
Google
Safari Chrome
STRUCTURE
❖ Structural Components:
✓ Clients/browsers
✓ Servers
✓ Caches
✓ Internet [4].
❖ Semantic Components:
✓ Hyper Text Transfer Protocol (HTTP)
✓ Hyper Text Markup Language (HTML)
✓ Extensible Markup Language (XML)
✓ Uniform Resource Identifiers (URIs)[3].
WEB
FUNDAMENTALS
World Wide Web (WWW)
✓Global hypertext network of millions of Web
servers & browsers
✓ Connected by Hypertext Transfer Protocol
(HTTP)
✓ Web pages can be designed by Hypertext
Markup Language (HTML)
WEB
FUNDAMENTALS
❑ Web Browser
✓A web browser displays a web
document and enables users to access
web documents.
❑ Web Server
✓ Servers respond with requested
Web page
or with error message.
❑ Uniform Resource
Locator(URL)
✓ These are the web addresses.
We type URL in address bar of the browser then hit on
FULL STRUCTURE OF A PUBLIC URL
It identifies
The domain
the location
name of web
of the
server on which
document on
page is located.
internet
It identifies
It is the Hypertext the resource
Transfer Protocol name.
When the user types a URL or clicks on a line of hypertext, the browser the URL
and interprets the part between http:// and next slash establishes a TCP
connection to port 80 on that server.
The server performs the following
1. Accepts a TCP connection from a client(a browser)
2. Get the path to the page, which is the name of the file requested.
3. Get the file ( from the disk).
4. Send the comments of the file to the client.
5. Release the TCP connection.
COOKIES
WHAT IS AN HTML FILE?
The markup tags tell the Web browser how to display the page
The markup tags tell the Web browser how to display the page
<html>
<head>
<title>My Home Page</title>
</head>
<body>
<h1>Welcome</h1>
</body>
</html>
BASIC STRUCTURE ELEMENTS
36
CS 640
status-line (HTTP-version response-code response-phrase)
headers (0 or more)
<blank line>
body
Location: http://www.wisc.edu/cs/index.html
37
CS 640
Both requests and responses can contain a variable number of header fields
Consists of field name, colon, space, field value
17 possible header types divided into three categories
Request
Response
Body
Example: Date: Friday, 27-Apr-01 13:30:01 GMT
HTTP HEADERS
Example: Content-length: 3001
38
CS 640
Hyper-Text Markup Language
A subset of Standardized General Markup Language (SGML)
Facilitates a hyper-media environment
Embedded links to other documents and applications
Documents use elements to “mark up” or identify sections of text
for different purposes or display characteristics
Mark up elements are not seen by the user when page is displayed
Documents are rendered by browsers
HTML NOTE:
BASICSNot all documents in the Web are HTML!
Most people use WYSIWYG editors (MS Word) to generate HTML
39
CS 640
<HTML>
<HEAD>
<TITLE> PB’s HomePage </TITLE>
</HEAD>
<BODY>
<CENTER><IMG SRC = “bad_picture.gif” ALT = “ “><BR></CENTER>
<P><CENTER><H1>UW Computer Science Department</H1></CENTER>
Welcome to my goofy HomePage!
…
<A HREF = http://www.cs.wisc.edu/~pb/mydogs_page.html> Spot’s Page </A>
</BODY>
HTML EXAMPLE
</HTML>
40
CS 640
HTML FOR AN ORDERED FORM
THE FORMATTED PAGE
DYNAMIC WEB PAGES, WEB
APPLICATION
DYNAMIC WEB PAGES, WEB
APPLICATION