6. Links

Links are the lifeblood of the web. Without them, every webpage would just exist on its own, completely disconnected from all the others. That makes for sad webpages.

A link has two main parts: a destination and a label. You use the destination to specify what will happen when the visitor triggers the link. You can create links that go to another page or website, jump within a page, show an image, download files, prompt a phone call, and more. The most common links, however, connect to other webpages, and sometimes to specific locations on webpages, which are called anchors. Destinations are defined ...

Get HTML and CSS: Visual QuickStart Guide, Eighth 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.