22.04.2013 Views

HTML, XHTML & CSS

HTML, XHTML & CSS

HTML, XHTML & 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.

Chapter 3: Proper Planning Prevents Poor Page Performance<br />

Planning outside links<br />

The Web wouldn’t be the Web without hyperlinks. After all, hyperlinks connect<br />

your site to the rest of the Web and turn a collection of pages into a<br />

cohesive site. But overusing or misusing links detracts from a site — and may<br />

even cost you some business.<br />

Choose off-site links wisely<br />

Internal linking is a walk in the park compared to external linking; after all,<br />

when you link to pages on your own site, all such pages are under your control.<br />

You know what’s on them today, whether they will exist tomorrow, and<br />

what will be on them. When you link to resources on someone else’s site,<br />

however, all bets are off:<br />

✓ You don’t maintain the pages.<br />

✓ You can’t modify the page’s content.<br />

✓ You certainly don’t know whether the pages will disappear.<br />

Neither will your visitors — until they slam into a 404 File or Directory<br />

Not Found message (the usual sign of a broken link that now goes<br />

nowhere). The text in 404 messages varies depending on the server that<br />

hosts the Web site with the broken link.<br />

Links to other sites are more useful when they’re stable and have less chance<br />

of breaking. We recommend these guidelines:<br />

✓ Link to a section of a site, not to a specific page. Pages come and go,<br />

but general organization lasts longer.<br />

✓ Link to corporate Web sites. Corporate sites have more staying power<br />

than sites maintained by an individual.<br />

✓ Don’t link directly to media files, such as PDFs and images. If you want<br />

to link to resources on another Web site, link to the page that links to<br />

those resources instead of the actual media files. Sites often update<br />

resources or give them new names. The page that links to the resource,<br />

however, is almost always certain to be updated to reflect new names.<br />

Therefore the resource page is a safer linking bet.<br />

Linking to other sites implies your support or endorsement of those sites.<br />

When visitors follow links from your site to other sites, they assume you<br />

approve of that new site. That implied approval makes a couple of guidelines<br />

necessary:<br />

53

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

Saved successfully!

Ooh no, something went wrong!