What's in a Link?

Every link has two parts. Creating links is a simple matter of choosing a spot on the page for the link and then supplying both parts:

  • The link text— the actual text (or graphic) that appears on the page to represent the link. When a visitor activates a link, he or she clicks the link text to activate the unseen URL underneath.

  • The link location— the URL describing the page, file, or Internet service to be accessed when the link is activated.

You can create menus or directories of links, like those shown in Figure 23.1, by making each link a separate line in a list. But links don't have to be on separate lines, as Figure 23.1 shows. You can use any words or phrases in your page as links, including headings (or words in headings), ...

Get Sams Teach Yourself Internet and Web Basics All in One 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.