World Wide Web 1

27
WWW1 1 World Wide Web 1

description

World Wide Web 1. Networks allow computers to talk to each other. Networks can have different topologies. Linear. Star. If a node on a network fails other nodes might be disconnected. The Internet. - PowerPoint PPT Presentation

Transcript of World Wide Web 1

Page 1: World Wide Web 1

WWW1 1

World Wide Web 1

Page 2: World Wide Web 1

WWW1 2

Networks allow computers to talk to each other

Page 3: World Wide Web 1

WWW1 3

Networks can have different topologies

Linear

Star

Page 4: World Wide Web 1

WWW1 4

If a node on a network fails other nodes might be disconnected

Page 5: World Wide Web 1

WWW1 5

The Internet

• During the Cold War the U.S. Military gave money to colleges and universities to develop networks that could survive a nuclear attack

Page 6: World Wide Web 1

WWW1 6

A network with a center would be very vulnerable to attach

Page 7: World Wide Web 1

WWW1 7

A distributed network with multiple routes between points would be

more likey to survive

Page 8: World Wide Web 1

WWW1 8

The network relied on the ability of the nodes to dynamically find

routes for data

Page 9: World Wide Web 1

WWW1 9

The Internet

• The result was a global decentralized network that no one owns.

Page 10: World Wide Web 1

WWW1 10

Network Protocols• E-mail: allows users to

send messages to each other

• FTP: File Transfer Protocol

• Telnet: allows users to log into their computers from remote locations

• A number of network protocols were developed for the transfer of information

Page 11: World Wide Web 1

WWW1 11

Hyper Text Transfer Protocol

• HTTP allowed information for public consumption to be transferred and read easily

• HyperText Markup Language was developed for describing the content

Page 12: World Wide Web 1

WWW1 12

What happens when you look at a web page?

• Browser• Link• Network• Server• HTML file• Network• Image file• Browser

Page 13: World Wide Web 1

WWW1 13

Browser

• Web pages are displayed in a browser

• Common Browsers– Internet Explorer (MS)

– Navigator (Netscape)

– Opera

– Safari (Apple)

– Firefox

Page 14: World Wide Web 1

WWW1 14

Link

• In the browser the user can– Click on a link in the

current page

– Type in the URL for a new page e.g www.cit.ie

Page 15: World Wide Web 1

WWW1 15

Network

• The URL request for data is routed through the internet until it finds its way to the web server

Page 16: World Wide Web 1

WWW1 16

Server

• The web server accepts requests from web surfers for files it holds.

• Using the URL it determines who wants what and then goes away and gets it

Page 17: World Wide Web 1

WWW1 17

Network

• The file the web surfer requested is sent across the network to the surfer’s browser

• When it arrives the browser interprets the HTML and lays out the page according to instructions

Page 18: World Wide Web 1

WWW1 18

Image File

• If the web page the user requested contains images then the browser sends a request to the server to the images

• When these images arrive the browser can insert them into the page

Page 19: World Wide Web 1

WWW1 19

Browser

• The browser lays out the web page with images as specified by the HTML

• Different browsers might render the HTML slightly differently

Page 20: World Wide Web 1

WWW1 20

Broken Link

• If the surfer requests a file that is not on the server then the web server cannot deliver it

• This happens with mis-typed URLs

• If a link points to a file that is not available then is is a broken link

Page 21: World Wide Web 1

WWW1 21

HTML Files

• HTML files are bog-standard unformatted text files

• By convention HTML files on the web server are named with extensions .htm or .html

• The URL must specify the server name and the precise location of the file in the directory system

Page 22: World Wide Web 1

WWW1 22

Images

• While modern browsers can render a variety of image formats only GIF and JPEG are considered standard

• GIF Graphics Interchange Format

• JPEG Joint Photographic Experts Group

• PNG

Page 23: World Wide Web 1

WWW1 23

H.T.M.L.

• Web pages are written Hypertext Mark up Language

• HTML pages are ASCII text files with tags for formatting

Page 24: World Wide Web 1

WWW1 24

HTML Example: 1 Basic Page

• Tags are bounded by < and >

• Tags usually occur in pairs

• All of the content appears in the body

<html><head></head><body>Hello World</body></html>

Page 25: World Wide Web 1

WWW1 25

HTML Example 2: Bold & Italics

Hello World

Howdy Doody

<html><head></head><body>Hello World<br/><b>Howdy</

b><i>Doody</i></body></html>

N

Page 26: World Wide Web 1

WWW1 26

HTML Example 3: A Link

Hello World

Howdy Doody

CIT

<html><head></head><body>Hello World<br/><b>Howdy</b><i>Doody</

i><br/><a

href=“http://www.cit.ie/”>CIT</a>

</body></html>

N

Page 27: World Wide Web 1

WWW1 27

More Examples on Handouts

• <b><i><u>• <br/> <hr/>• <a href=“”>• <img src=“”/>• <tt><code>