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.

uniform resource locators<br />

Mainstreet, USA<br />

136 Chapter 4<br />

URL<br />

You’ve probably heard the familiar “h” “t” “t” “p” “colon”<br />

“slash” “slash” a zillion times, but what does it mean? <strong>First</strong>, of<br />

all, the Web addresses you type into the browser are called<br />

URLs or Uniform Resource Locators.<br />

If it were up to us we would have called them “Web addresses,”<br />

but no one asked, so we’re stuck <strong>with</strong> Uniform Resource<br />

Locators. Here’s how to decipher a URL:<br />

http://www.starbuzzcoffee.com/index.html<br />

The first part of<br />

the URL tells you<br />

the protocol that<br />

needs to be used<br />

to retrieve the<br />

resource.<br />

The second part is<br />

the Web site name.<br />

At this point you<br />

know all about that.<br />

And the third part is<br />

the absolute path to<br />

the resource from the<br />

root folder.<br />

To locate anything on the Web, as long as you know the server<br />

that hosts it, and an absolute path to the resource, you can create<br />

a URL and most likely get a Web browser to retrieve it for you<br />

using some protocol – usually HTTP.<br />

Come on down to<br />

http://www.earlsautos.com<br />

A Uniform Resource<br />

Locator (URL) is a<br />

global address that<br />

can be used to locate<br />

anything on the Web,<br />

including <strong>HTML</strong><br />

pages, audio, video,<br />

and many other forms<br />

of Web content.<br />

In addition to<br />

specifying the location<br />

of the resource, a<br />

URL also names the<br />

protocol that you can<br />

use to retrieve that<br />

resource.

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

Saved successfully!

Ooh no, something went wrong!