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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.