Hypertext Basics

A fundamental feature of hypertext is that you can hyperlink documents; you can point to another place inside the current document, inside another document in the local collection, or inside a document anywhere on the Internet. The documents become an intricately woven web of information. (Get the name analogy now?) The target document usually is somehow related to and enriches the source; the linking element in the source should convey that relationship to the reader.

You can use hyperlinks for all kinds of effects. You can use them inside tables of contents and lists of topics. With a click of the mouse on their browser screen or a press of a key on their keyboard, readers select and automatically jump to a topic of interest in the same document or to another document located in an entirely different collection somewhere around the world.

Hyperlinks also point readers to more information about a mentioned topic. “For more information, see Kumquats on Parade,” for example. Authors use hyperlinks to reduce repetitive information. For instance, we recommend you sign your name to each document. Instead of including full contact information in each document, you can use a hyperlink to connect your name to a single document that contains your address, phone number, and so forth.

A hyperlink, or anchor in standard parlance, is marked by the <a> tag and comes in two flavors. As we describe in detail later, one type of anchor creates a hotspot in the document that, when activated ...

Get HTML & XHTML: The Definitive Guide, 6th 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.