04.07.2013 Views

Head First HTML and CSS - Cdn.oreilly.com

Head First HTML and CSS - Cdn.oreilly.com

Head First HTML and CSS - Cdn.oreilly.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

getting connected<br />

4A Trip to Webville<br />

Web pages are a dish best served on the Internet. So far<br />

table of contents<br />

you’ve only created <strong>HTML</strong> pages that live on your own <strong>com</strong>puter. You’ve also<br />

only linked to pages that are on your own <strong>com</strong>puter. We’re about to change all<br />

that. In this chapter we’ll encourage you to get those web pages on the Internet<br />

where all your friends, fans, <strong>and</strong> customers can actually see them. We’ll also<br />

reveal the mysteries of linking to other pages by cracking the code of the h, t, t, p,<br />

:, /, /, w, w, w. So, gather your belongings; our next stop is Webville.<br />

Getting Starbuzz (or yourself) onto the Web 124<br />

Finding a hosting <strong>com</strong>pany 125<br />

How can you get a domain name? 126<br />

Moving in 128<br />

Getting your files to the root folder 129<br />

As much FTP as you can possibly fit in two pages 130<br />

Back to business… 133<br />

Mainstreet, USA 134<br />

What is HTTP? 135<br />

What’s an absolute path? 136<br />

How default pages work 139<br />

Earl needs a little help with his URLs 140<br />

How do we link to other websites? 142<br />

Linking to Caffeine Buzz 143<br />

And now for the test drive… 144<br />

Web page fit <strong>and</strong> finish 147<br />

The title test drive… 148<br />

Linking into a page 149<br />

Using the id attribute to create a destination for 150<br />

How to link to elements with ids 151<br />

Linking to a new window 155<br />

Opening a new window using target 156<br />

Exercise Solutions 160<br />

xiii

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

Saved successfully!

Ooh no, something went wrong!