Lecture 2 - Introduction to Internet
Lecture 2 - Introduction to Internet
and Web
Internet
• It is the largest network in the world that connects
hundreds of thousands of individual networks all
over the world.
• The popular term for the Internet is the
“information highway”.
• Rather than moving through geographical space, it
moves your ideas and information through
cyberspace – the space of electronic movement of
ideas and information.
Internet
• No one owns it
• It has no formal management organization.
• As it was originally developed by the Department
of defense, this lack of centralization made it less
vulnerable to wartime or terrorist attacks.
• To access the Internet, an existing network need to
pay a small registration fee and agree to certain
standards based on the TCP/IP (Transmission
Control Protocol/Internet Protocol) .
The uses of the Internet
Request “document A”
document A
Client Server
5
Internet vs. WWW
• Most people use the two terms interchangeably but they are
in fact different.
• The Internet is a vast, international network, made up of
computers and the physical connections (wires, routers,
etc.) allowing them to communicate.
• The World Wide Web (WWW or just the Web) is a
collection of software that spans the Internet and enables
the interlinking of documents and resources.
– Provides a way of accessing information on the Internet.
6
Internet v.s. Web
• The Internet: a inter-connected computer
networks, linked by wires, cables, wireless
connections, etc.
• Web: a collection of interconnected
documents and other resources.
• The world wide web (WWW) is accessible
via the Internet, as are many other services
including email, file sharing, etc.
7
Web Servers and Clients
• A Web server is a computer that is
programmed to send files to browsers on
other computers connected to the Internet.
• The Web browser, such as Firefox or Internet
Explorer, is the client that sends a request for
a Web page.
• The Web server answers the request and
delivers the requested page to the browser so
you can view it.
8
The World Wide Web (WWW)
• WWW is a system of interlinked, hypertext
documents that runs over the Internet
• Two types of software:
– Client: a system that wishes to access the information
provided by servers must run client software (e.g., web
browser)
– Server: an internet-connected computer that wishes to
provide information to others must run server software
– Client and server applications communicate over the
Internet by following a protocol built on top of TCP/IP
– HyperText Transport Protocol (HTTP)
9
Basics of the WWW
• Hypertext: a format of information which
allows one to move from one part of a
document to another or from one document
to another through hyperlinks
• Uniform Resource Locator (URL): unique
identifiers used to locate a particular
resource on the network
• Markup language: defines the structure
and content of hypertext documents
10
Web Client: Browser
• Makes HTTP requests on behalf of the user
– Reformat the URL entered as a valid HTTP request
– Use DNS to convert server’s host name to appropriate IP
address
– Establish a TCP connection using the IP address
– Send HTTP request over the connection and wait for server’s
response
– Display the document contained in the response
• If the document is not a plain-text document but instead is written in
HTML, this involves rendering the document (positioning text,
graphics, creating table borders, using appropriate fonts, etc.)
11
What is Web?
• The Web (World Wide Web) consists of information
organized into Web pages containing text and graphic
images.
• It contains hypertext links, or highlighted keywords
and images that lead to related information.
• A collection of linked Web pages that has a common
theme or focus is called a Web site.
• The main page that all of the pages on a particular
Web site are organized around and link back to is
called the site’s home page.
How to access the Internet?
• Many schools and businesses have direct
access to the Internet using special high-
speed communication lines and equipment.
• Students and employees can access through
the organization’s local area networks
(LAN) or through their own personal
computers.
• Another way to access the Internet is
through Internet Service Provider (ISP).
How to access the Internet?
• To access the Internet, an existing network need to
pay a small registration fee and agree to certain
standards based on the TCP/IP (Transmission
Control Protocol/Internet Protocol) reference
model.
• Each organization pays for its own networks and
its own telephone bills, but those costs usually
exist independent of the internet.
• The regional Internet companies route and forward
all traffic, and the cost is still only that of a local
telephone call.
Internet Service Provider (ISP)
protocol pathname
http://www.chicagosymphony.org/civicconcerts/index.htm
26
Web Server-Client Diagram
27
URLs
• Stands for Uniform Resource Locator
• Also called the Web page’s address
• You typically type it into your Web browser’s location bar
when you want to view a Web page
http://www.umbc.edu
Protocol Name of
needed to Web
communicate server
with Web 28
server
HTML
• Stands for HyperText Markup Language
• Used to create a Web page
• Made up of tags that specify the structure of the
document (this section is a heading, this section is a
paragraph, etc..)
• An excerpt from a sample HTML document:
<html>
<head>
<title>Bob’s Web page</title>
</head>
<body>
<h1>This is my first Web page</h1>
29
HTML Tags
• Most HTML tags work in pairs. There is an
opening and a closing tag. For example:
<p>Some content here.</p>
• The <p>…</p> tag displays a paragraph
• <p> opens the paragraph (opening tag)
• </p> closes the paragraph (closing tag)
• “Some content here.” will be displayed on the
page
30
Self-closing Tags
• Some HTML tags are self closing. For
example:
<br />
• The <br /> tag will display a line break.
31
HTTP
• The transfer protocol is the set of rules that the
computers use to move files from one computer to
another on the Internet.
• The most common transfer protocol used on the
Internet is the Hypertext Transfer Protocol
(HTTP).
• Two other protocols that you can use on the
Internet are the File Transfer Protocol (FTP) and
the Telnet Protocol
How to find information on the Web?
• A number of search tools have been developed and
available to you on certain Web sites that provide
search services to help you find information.
• Examples:
Yahoo www.yahoo.com
Excite www.excite.com
Lycos www.lycos.com
AltaVista www/alta-vista.com
MSN WebSearch www.search.msn.com
How to find information on the Web?
• You can find information by two basic means.
• Search by Topic and Search by keywords.
• Some search services offer both methods,
others only one.
• Yahoo offers both.
Search by Topic
You can navigate through topic lists
Search by keywords
You can navigate by entering a keyword or phase into a
search text box.
The Evolution of the Internet
• Internet
– Interconnected network of computer networks
– ARPAnet
• Advanced Research Project Agency
• 1969 – four computers connected
– NSFnet
• National Science Foundation
Convergence of technologies:
Affordable personal computers with GUI Operating Systems
Affordable Internet service providers
37
The World Wide Web
The graphical user interface to information
stored on some of the computers connected to
the Internet.
38
Web Standards
and the W3C Consortium
W3C – World Wide Web Consortium
Develops recommendations and prototype
technologies related to the Web
39
Web Accessibility
“The power of the Web is in its universality. Access by
everyone regardless of disability is an essential aspect.” –
Tim Berners-Lee
Accessible Websites
provide accommodations that help individuals to
individuals with visual, auditory, physical, and
neurological disabilities overcome barriers
41
Universal Design
“The design of products and environments
to be usable by all people, to the greatest
extent possible, without the need for
adaptation or specialized design.”
42
Information on the Web
43
Network Overview
Network
two or more computers connected together for the purpose of
communicating and sharing resources
44
The Client/Server Model
• Client/Server can describe a relationship between two
computer programs – the "client" and the "server".
• Client
– requests some type of service (such as a file or database
access) from the server.
• Server
– fulfills the request and transmits the results to the client over a
network
45
The Client/Server Model
• The Internet
Client/Server Model
– Client: Web Browser
– Server: Web Server
46
Internet Protocols
Protocols
› Rules that describe the methods used for clients
and servers to communicate with each other over a
network.
• Specialized Protocols:
– File Transfer: FTP
– E-mail: SMTP, POP3, IMAP
– Websites: HTTP
48
HTTP
Hypertext Transfer Protocol
A set of rules for exchanging files such as text,
graphic images, sound, video, and other multimedia
files on the Web. HTTP Request
HTTP Response
Web browsers send HTTP requests for web pages and their
associated files.
50
TLD
Top-Level Domain Name
• A top-level domain (TLD) identifies the right-
most part of the domain name.
51
Country Code TLDs
• Two character codes originally intended to indicate the
geographical location (country) of the web site.
• Examples:
– .tv, .ws, .au, .jp, .uk
– See http://www.iana.org/cctld/cctld-whois.htm
52
Domain Name System
• The Domain Name System (DNS) associates
Domain Names with IP addresses.
Domain Name
IP Address DNS
Web Browser Web
requests web page Use TCP/IP
Server
to send HTTP Request
Use TCP/IP
to send HTTP Responses
with web page files & images
Web Browser
displays web page 53
53
Markup Languages
• SGML – Standard Generalized Markup
Language
› A standard for specifying a markup language or tag
set
54
Markup Languages (2)
• XML – eXtensible Markup Language
55
Markup Languages (3)
• XHTML – eXtensible Hypertext Markup Language
56
Markup Languages (4)
HTML 5
› http://www.w3.org/html/
57
Your First HTML5 Web Page:
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Page Title Goes Here</title>
<meta charset="utf-8">
</head>
<body>
... body text and more HTML tags go here ...
</body>
</html>
58
Under the Hood of
a Web Page
DTD – describes the markup language syntax
HTML element– contains the web page document
Head element – contains the head section
The head section contains information that describes the
web page document
Title element– Text displays in title bar of window
Meta element – describes the character encoding
Body element – contains the body section
The body section contains the text and elements that
59
display in the browser viewport.
Static Web: HTML/XHTML, CSS
• HTML stands for HyperText Markup Language
– It is a text file containing small markup tags that
tell the Web browser how to display the page
• XHTML stands for eXtensible HyperText Markup
Language
– It is identical to HTML 4.01
– It is a stricter and cleaner version of HTML
• CSS stands for Cascading Style Sheets
– It defines how to display HTML elements
60
Why Programmability?
• What’s the drawback to simple document
model?
– Static
– Assume that documents are created before they are
requested
• What are examples of information that might
be part of web documents that may not be
known before they are requested?
61
Client-Side Programmability
• Scripting language: a lightweight programming language
• Browser scripting: JavaScript
– Designed to add interactivity to HTML pages
– Usually embedded into HTML pages
– What can a JavaScript Do?
• Put dynamic text into an HTML page
• React to events
• Read and write HTML elements
• Validate data before it is submitted to a server
• Create cookies
• …
62
Server-Side Programmability
• The requests cause the response to be generated
• Server scripting:
– CGI/Perl: Common Gate Way Interface (*.pl, *.cgi)
– PHP: Open source, strong database support (*.php)
– ASP: Microsoft product, uses .Net framework (*.asp)
– Java via JavaServer Pages (*.jsp)
– …
63
What’s Ahead?
• HTML, XHTML
• CSS
• Simple client-side interactivity (JavaScript)
• Simple server-side interactivity (CGI/Perl) –
Later Courses
• We will not “teach” these languages
• We will provide an overview of the basics, and
learn how to use the web resources to help build
a web page
64
Summary
65