HTML and CSS Reference
In-Depth Information
What does the web server do?
Web servers have a full-time job on the Internet, tirelessly waiting for requests from web
browsers. What kinds of requests? Requests for web pages, images, sounds, or maybe
even a video. When a server gets a request for any of these resources, the server inds the
resource, and then sends it back to the browser.
L
f
<
M P
<
< d
<
<
<
BT S
<
<
E
ach
serve
r
s
tores
HTM
L
f
iles,
pictu
res,
“Found it, here ya go”
…an
d if t
he ser
ver c
an
sound
s and
othe
r
file t
ypes.
loca
te th
e res
ource,
it
Web Server
sen
ds it
to th
e brow
ser.
What does the web browser do?
You already know how a browser works: you're suring around the Web and you click on a
link to visit a page. That click causes your browser to request an HTML page from a web
server, retrieve it, and display the page in your browser window.
…and the browser displays
the HTML page.
<
<
d
< d
<
W
H d
<
<
d
< J
<
<
Web Server
But how does the browser know how to display a page? That's where HTML comes in. HTML
tells the browser all about the content and structure of the page. Let's see how that works…