04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

What does the Web server do?<br />

Web servers have a full time job on the Internet, tirelessly waiting for requests from Web<br />

browsers. What kinds of requests? Requests for Web pages, images, sounds, or maybe even a<br />

movie. When a server gets a request for any of these resources, the server finds the resource,<br />

and then sends it back to the browser.<br />

The server’s just a computer<br />

connected to the Internet waiting<br />

for requests from browsers.<br />

Each server<br />

stores <strong>HTML</strong><br />

files, pictures,<br />

sounds and other<br />

file types.<br />

<br />

<br />

<br />

My Playlist<br />

<br />

<br />

<br />

Kick’n Tunes<br />

<br />

BT - Satellite:<br />

nice downbeat tune.<br />

<br />

<br />

...<br />

<br />

<br />

<br />

My Playlist<br />

<br />

<br />

<br />

Kick’n Tunes<br />

<br />

BT - Satellite:<br />

nice downbeat tune.<br />

<br />

<br />

...<br />

Web Server<br />

What does the Web browser do?<br />

“I need the <strong>HTML</strong> f<br />

“Found it, here ya go”<br />

le ‘lounge.html’”<br />

...and if the server can<br />

locate the resource, it<br />

sends it to the browser.<br />

You already know how a browser works: you’re surfing around the Web and you click on a link<br />

to visit a page. That click causes your browser to request an <strong>HTML</strong> page from a Web server,<br />

retrieve it, and display the page in your browser window.<br />

Web Server<br />

The server “serves up”<br />

Web pages and sends<br />

<br />

<br />

<br />

<strong>Head</strong> <strong>First</strong> Lounge<br />

<br />

<br />

<br />

Welcome to <strong>Head</strong><br />

<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!