Head First HTML and CSS - Cdn.oreilly.com
Head First HTML and CSS - Cdn.oreilly.com
Head First HTML and CSS - Cdn.oreilly.com
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<br />
even a video. When a server gets a request for any of these resources, the server finds the<br />
resource, <strong>and</strong> then sends it back to the browser.<br />
The server’s just a <strong>com</strong>puter<br />
connected to the Internet waiting<br />
for requests from browsers.<br />
Each server<br />
stores <strong>HTML</strong><br />
files, pictures,<br />
sounds <strong>and</strong> other<br />
file types.<br />
<br />
<br />
<br />
My Playlist<br />
<br />
<br />
<br />
Kick’n Tunes<br />
<br />
BT - Satellite: nice downbeat<br />
tune.<br />
<br />
<br />
...<br />
<br />
<br />
<br />
My Playlist<br />
<br />
<br />
<br />
Kick’n Tunes<br />
<br />
BT - Satellite: nice downbeat<br />
tune.<br />
<br />
<br />
...<br />
<br />
<br />
<br />
My Playlist<br />
<br />
<br />
<br />
Kick’n Tunes<br />
<br />
BT - Satellite: nice downbeat<br />
tune.<br />
<br />
<br />
...<br />
Web Server<br />
“I need the <strong>HTML</strong> file ‘lounge.html’”<br />
“Found it, here ya go”<br />
…<strong>and</strong> if the server can<br />
locate the resource, it<br />
sends it to the browser.<br />
What does the web browser do?<br />
You already know how a browser works: you’re surfing around the Web <strong>and</strong> you click on a<br />
link to visit a page. That click causes your browser to request an <strong>HTML</strong> page from a web<br />
server, retrieve it, <strong>and</strong> display the page in your browser window.<br />
<br />
<br />
<br />
My Playlist<br />
<br />
<br />
<br />
Kick’n Tunes<br />
<br />
BT - Satellite: nice downbeat<br />
tune.<br />
<br />
<br />
...<br />
<br />
<br />
<br />
My Playlist<br />
<br />
<br />
<br />
Kick’n Tunes<br />
<br />
...<br />
<br />
<br />
<br />
My Playlist<br />
<br />
<br />
<br />
Kick’n Tunes<br />
<br />
...<br />
Web Server<br />
The server “serves up”<br />
web pages <strong>and</strong> sends<br />
<br />
<br />
<br />
<strong>Head</strong> <strong>First</strong> Lounge<br />
<br />
<br />
<br />
Wel<strong>com</strong>e to <strong>Head</strong><br />
<br />