6. Links

In This Chapter

The Anatomy of a Link

Creating a Link to Another Web Page

Creating Anchors

Linking to a Specific Anchor

Creating Other Kinds of Links

Links are the lifeblood of the Web. Without them, every page would just exist on its own, completely disconnected from all the others.

The Anatomy of a Link

A link has two main parts: a destination and a label. The first part, the destination, is arguably the most important. You use it to specify what will happen when the visitor triggers the link. You can create links that go to another page, jump within a page, show an image, download files, send an email message, and more. The most common links, however, connect to other Web pages , and sometimes to specific locations on other Web pages, ...

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.