Professional Documents
Culture Documents
01-1 - Introduction To Web Programming
01-1 - Introduction To Web Programming
1 2
1 2
3 4
1
1.1. The Internet (2) 1.2. The World Wide Web
❖ Free access to central servers that allow machines ❖ Developed by Tim Berners-Lee at CERN in 1990
and people to locate other machines by their ❖ The idea of documents that contain hyperlinks to
Internet address. other documents on the Internet
▪ e.g. 100.99.88.32
❖ W3 or Web for short
NeXT Computer
The first Web server
5 6
5 6
1.2. The World Wide Web (2) 1.3. Web page or Webpage
❖ World Wide Web
▪ a system of interlinked hypertext documents accessed via
the Internet ❖ A Web document
❖ HyperText Markup Language (HTML) ▪ a document or resource of information that
is suitable for the WWW and can be
▪ document layout language for all Web Documents accessed through a web browser and
displayed on a computer screen
❖ HyperText Transfer Protocol (HTTP)
▪ allows any machine to load a document via a hyperlink from ❖ Usually in HTML or XHTML format
any other machine ▪ XHTML (Extensible HTML): Intersection
between HTML and XML
❖ Requested and served from web servers
using HTTP.
7 8
7 8
2
Web ≠ Internet
1.4. Web site or Website
• Internet: a physical network connecting millions of
computers using the same protocols for
❖ A collection of related web pages, images, videos or other sharing/transmitting information (TCP/IP)
digital assets that are addressed with a common domain • in reality, the Internet is a network of smaller networks
name or IP address in an Internet Protocol-based network
• World Wide Web: a collection of interlinked
❖ Hosted on at least one web server, accessible via the Internet
or a private local area network.
multimedia documents that are stored on the Internet
and accessed using a common protocol (HTTP)
• Key distinction: Internet is hardware; Web is software
along with data, documents, and other media
• Many other Internet-based applications exist e.g.,
email, telnet, ftp, usenet, instant messaging services,
file-sharing services, …
9 10
9 10
11 12
11 12
3
Content 2.1. URI (Uniform Resource Identifier)
1. The Internet and WWW
2. Uniform Resource Identifier (URI)
❖ A string of characters used to identify or name a
3. Web Application model resource on the Internet
❖ Classification
▪ URN: a person's name
▪ URL: that person's street-address
→URN defines an item's identity
→URL provides a method for finding it
13
13 14
scheme path
http://www.google.com/search?q=test#prs
16
15 16
4
2.2. Uniform Resource Locator (URL)
2.3. Uniform Resource Name (URN)
(2)
◆ Syntax
◆ Globally unique and persistent name of a resource on the
resource_type://domain:port/filepathname?query_string#anchor Internet
◆ Example ◆ Syntax: <URN> ::= "urn:" <NID> ":" <NSS>
http://www.annex.com/southwest/museum.htm ◆ <NID> is the Namespace Identifier
◆ <NSS> is the Namespace Specific String
Document ◆ Example
◆ urn:isbn:0451450523
Path (Directory or Folder) ◆ The URN for "The Last Unicorn", identified by its book number.
◆ urn:isan:0000-0000-9E59-0000-O-0000-0000-2
Internet Address (Website domain) ◆ The URN for "Spider-Man (film)", identified by its audiovisual number.
◆ …
Means of access,
HyperText Transfer Protocol
18
17 18
Request
Client Server
Response
19 20
19 20
5
Client Server Model (Web)
Web Browsers
❖ Client: User Agent
•Primary tasks:
❖ Server: Web server • Convert web addresses (URL’s) to HTTP requests
• Communicate with web servers via HTTP
• Render (appropriately display) documents returned by a server
HTTP Request
HTTP Response
21
21 22
23 24
6
Web Application Evolution – Static
Web Servers
25 26
7
More than one Web server?
29 30
29 30
31 32
31 32
8
HTTP Request HTTP Request
33 34
33 34
35
35 36
35 36
9
HTTP Response HTTP Response
37 38
37 38
39 40
39 40
10
Web Tools and Environments Question?
❖ Debugging
▪ View Source
▪ Firebug
▪ Inspect Element
41 42
41 42
43 44
43 44
11
Back-end DevOps
45 46
45 46
12