Learning Objectives: Introduction To Internet and World Wide Web
Learning Objectives: Introduction To Internet and World Wide Web
• History of Internet
Introduction to Internet and • Understand how standards, services, and protocols allow
different hardware and software to work together.
World Wide Web
• Have a basic understanding of Internet architecture and
SCCS 201 Web Programming addressing.
• Router or gateway. A hardware connecting 2 or more • Domain Name server (DNS). A server that provides
networks that passes data packets from sources to the service to translate between IP addresses and friendly
destinations. domain names, e.g. 66.249.89.104 = www.google.com.
• IP address. A 4-parted numbers used to identify a • Web proxy. A server that provides content (web pages)
computer or machine on the Internet, e.g. 10.22.5.123. caching or blocking services to browser clients.
5 6
7 8
http://research.lumeta.com/ches/map/gallery/isp-ss.gif
TCP/IP Protocols
Services and Ports
• The Internet uses a packet-switching architecture. This
divides information as chunks of data when it’s sent, and • TCP/IP defines a number of “channels”, called ports, that
provides a means for determining that all of the data arrived a service (server) uses for data transfer to/from clients.
correctly at the target from the source.
• All Internet services work on top of TCP/IP protocols and
• When you send data traffic across the Internet, a protocol have their own specific port numbers and specific
(a predefined interaction between two computers) called the protocols, e.g.
TCP/IP protocol is used. – HTTP 80
– FTP 21
– The Transmission Control Protocol (TCP) part breaks – Telnet 23
the data into small size chunks called packets
– SMTP 25
– The Internet Protocol (IP) part routes them to their
intended address. • The software portion in OS that handles TCP/IP protocols
is called TCP/IP stack.
9 10
• The IPv4 specifies that Internet addresses are in the .org .com .edu .th .uk .jp
octet form ###.###.###.###; where each ### or .ac
.cnn .google
octet can run from 0 to 255 (28), e.g.
www www news .mahidol
– 64.236.16.116 (cnn)
www student
– 64.58.76.179 (yahoo)
– 216.33.156.119 (ebay) • There are domain name servers (DNS) run a database that
maps addresses to friendly names, and vice versa.
11 12
Domain Name Server What is the WWW?
• WWW stands for the World Wide Web, called the Web.
• A server that provides service to translate between IP • Introduced in 1990 by Tim Berners-Lee
addresses and friendly domain names • WWW is a service designed to allow easier access to the
information on the Internet through the use of graphical user
- e.g. www.google.com. = 66.249.89.104 interfaces.
• A user views Web pages that contain text, images, and
other multimedia and navigates between pages using
hyperlinks.
• WWW uses a standard communication protocol between
servers and clients called HTTP protocol.
• Frequently used (incorrectly) when referring to “The
Internet”.
13 14
Web Pages and Hypertext Links How Does the WWW Work?
17 18
Web Servers
• Web servers can be just a single computer or a group
of computers running web server software.
– Apache on Unix or Linux http://www.example.com/demo.html
– Internet Information Server
(IIS) on Windows
• All Web pages contain instructions on how • HTML is the language of the Web, and every
content to be displayed, i.e. control the Web developer should have a basic
appearance and layout of the pages. understanding of it.
• These instructions are called HTML markup • HTML stands for Hyper Text Markup Language.
tags. The browser displays the page by reading • An HTML file is a text file containing HTML
and process these instructions markup tags.
• The HTML tag for displaying a sentence using • An HTML file usually have an .htm or .html file
bold font is <b>, </b> extension.
For example: <b>This text is bold.</b> • An HTML file can be created using a simple text
editor like notepad or EditPlus.
21 22
Structure of the HTML Web Page Structure of the HTML Web Page
• <html> tag
Type in the following text and save it into the file as The start of an HTML document.
"mypage.htm“, then in a browser, use File/Open • </html> tag
mypage.htm The end of the HTML document.
• <head> and </head> tags
<html> The text between <header> and </header> tag is header
<head> information, it is not displayed in the browser window.
• <title> and </title> tags
<title>Title of page</title> The text between the <title> and </title> tags will be
</head> displayed in your browser's caption.
<body> • <body> and </body> tags
The text between the <body> and </body>tags will be
This is my first homepage. <b>This text is bold.</b> displayed in your browser. It is the content of the page.
</body> • <b> and </b> tags
</html> The text between the <b> and </b> tags will be displayed
in a bold font.
23 24
Note on HTML Editors
• You can easily edit HTML files using a
WYSIWYG (what you see is what you get)
editor such as:
– Macromedia Dreamweaver
– FrontPage
– Adobe GoLive
• But if you want to be a skillful Web
developer, you should use a plain text
editor to learn your HTML.
25 26