Chapter 8

Getting from Here to There


CONTENTS

The first time I went on the Internet, what I thought would only be a one-hour browsing session lasted four hours. I began by looking for information on graphic development. I did a Web search for related pages. The search returned thousands of pages, so I picked one that sounded promising. Once I got to the site, I went deeper into areas that were more relevant to the topics in which I was interested. Each site led me to another. It was like having a huge library in my living room.

Links and bookmarks are what give Web pages this level of interactivity. Without them, you cannot easily enable people to see what it is on your site or to find other sites with similar information. With links and bookmarks, a user can simply click a mouse on text or a graphic to navigate to all types of pages, download files, find newsgroups, and send e-mail.

Planning Your Web Site

There is no doubt about it-it takes some planning to create a good Web site. Before you start designing your pages, think about what you want to accomplish with your site and how the content should be organized. Most Web sites focus on one or more topics of interest. Each topic is organized in a group of pages that make up one section of a web. If you are working on a personal Web site, what do you want to focus on?

That is an important question. It is one of the first obstacles that you have to face. Once you hear that you have 1, 5, or even 25 megabytes of space to store pages on your server, you are in a quandary over what to fill them with. Your home page typically welcomes people to your site and explains what it is about, but you can use it as a gateway to much else. If you cannot think of anything more than filling your site with pictures of your kids and pets, here are some ideas:

TIP
If you do not have a scanner or access to one, but do have a CD-ROM drive, ask your photo shop to put your photographs on a photo CD. Many shareware and commercial graphics programs support the Photo-CD format.

TIP
MIDI files, which contain note and instrument data for MIDI-compatible instruments and sound cards, are generally much smaller than WAV files. The disadvantage to using MIDI files is that they can sound quite different, depending on the instrument or sound card that the user has.
WAV files are digital recordings of sound or music. The advantage to using them is that the file will sound the same from system to system. However, file sizes can become quite large. Many sound-editing programs offer ways to compress WAV files without too much loss in quality.

Once you have the basic idea for your Web site, think about how you want to organize the information. Make it easy for visitors to find their way around your site.

Figure 8.1 shows an example of an initial idea. The home page is linked to two main areas, which contain pages that discuss the person's areas of interest-white water rafting and myths and mysteries. It is a good idea to provide navigation links on each page so that users can return to other pages easily. For example, all the pages on white water rafting should include links back to the main page of the section, which in turn should contain a link back to the home page. Likewise, there should be links to navigate between the pages on rafting.

Figure 8.1: Plan your information before you start building your Web site.

Compare this to the hierarchical linking diagram shown in Figure 8.2. A structure like it might be good for an online book. The lack of links to other sections, however, means that users can quickly get lost, especially if the navigation is several levels deep. Provide a means for users to get around so that they do not have to backtrack through several levels to get to other areas of interest. The home page should provide links to the sections in the book-that is, the second level. Every second-level page should contain navigational links to the home page, the other second-level pages, and each of its third-level pages. Links to the preceding chapter should appear at the beginning of each chapter, and links to the following chapter should appear at the end of each chapter-just where people are most likely to need them.

Figure 8.2: Hierarchical linking is good to use for online books.

Bookmarks: Navigating Within Pages

Links and bookmarks are traditionally called anchors in the Web world, which is why they have an A tag. Bookmarks differ from links in that they mark a specific spot on a page. Just as bookmarks serve as placeholders when you read a book, they perform basically the same function on a Web page.

Creating Bookmarks

A page that contains bookmarks typically has a small table of contents at the top, which links the user to bookmarked headings on the page. At the end of the bookmark's section, another link takes the user back to a bookmark located at the top of the page or at the table of contents.

To create a bookmark on your page:

  1. From the FrontPage Editor, select the text that you want to use as a bookmark. Usually, this is a section heading.
  2. Choose Edit | Bookmark. The Bookmark dialog box appears. (See
    Figure 8.3.)
    Figure 8.3: You create a new bookmark with the Bookmark dialog box.
  3. By default, the text that you select for the bookmark appears in the Bookmark Name field. Though FrontPage allows you to create bookmark names that contain spaces, some browsers will not recognize them, and the bookmarks may not work properly. It is a good idea to keep bookmarks fairly short because it saves typing when linking to them from another page in the Web. A list of other bookmarks on the page appears beneath the bookmark name. Each bookmark on the page must have a unique name.
  4. Click OK to close the Bookmark dialog box. The bookmark text on the page becomes underlined with a dotted line.

Visiting Bookmarks

You can visit a bookmark on your page without creating a link to it. The steps are

  1. Select any text on the page, and choose Edit | Bookmark. The Bookmark dialog box appears.
  2. In the Other Bookmarks on this Page field, select the bookmark that you want to visit.
  3. Click Goto. The FrontPage Editor scrolls to the bookmark.
  4. Click OK or Cancel to close the Bookmark dialog box.

You also can visit a bookmark on another page. Suppose, for example, that you have the page oriental.htm, which is named "Cooking Great Chinese Food." On it is a section called "Picking Fresh Vegetables" with the bookmark freshveggies. When you create a link to this bookmark, the URL looks like

oriental.htm#freshveggies

Figure 8.4 shows how to visit the bookmark from the page that links to it. The steps are

Figure 8.4: When you visit a bookmark on a different page, FrontPage opens it and scrolls to its bookmark.

  1. Place the pointer anywhere within the text that the user clicks to go to the page or bookmark. The originating page is shown in the top portion of Figure 8.4.
  2. Choose Tools | Follow Link, or click the Follow Link button. The FrontPage Editor opens the other page and scrolls to the bookmark that you want to visit on the page. This is the portion of the page shown in the bottom portion of Figure 8.4.

Deleting Bookmarks

Deleting a bookmark is easy. The steps are

  1. Place the mouse pointer anywhere within the text of the bookmark.
  2. To delete the bookmark without deleting the associated text on the page, select Edit | Unlink. The bookmark is removed, but its heading text remains.
  3. To delete the bookmark as well as its associated text, select Edit | Bookmark and click Clear in Bookmark dialog box.

NOTE
An even quicker way to delete a bookmark or any other page element is to use the Delete key.

Links: Reaching Outward

It is convenient to be able to jump to different locations on a page, but that is not what the Web is all about. The Web is about reaching outward. To accomplish this, you provide links on your pages. Links can take users to other pages in your web, to pages in other people's webs, to newsgroups, and to other types of Internet protocols. You can even put a link on your page to get e-mail delivered to your mailbox. You can create three basic types of links:

Text Links

Whenever you see blue underlined text on a page, you know that it will take you somewhere else. For that reason, it is redundant to say "Click here." Instead, make your links descriptive. Figure 8.4 shows examples of text links.

Creating Text Links from the FrontPage Explorer

You can use the FrontPage Explorer to create a text link from the page that is currently opened in the FrontPage Editor to another page in the current web. As Figure 8.5 shows, creating a link this way involves only three easy steps. They are

Figure 8.5: Creating a text link from the FrontPage Explorer.

  1. From any view in the FrontPage Explorer, highlight the destination page-the page to which you want to link-as in part 1 of Figure 8.5.
  2. Left-click and drag the page from the FrontPage Explorer to an open page in the FrontPage Editor. The mouse pointer becomes a link pointer, as in part 2 of Figure 8.5.
  3. Move the link pointer to the line where you want to create the link, and release the left mouse button. A text link to the destination page appears on the opened page in the FrontPage Editor. The title of the page appears in the text link, as in part 3 of Figure 8.5.

Creating Text Links from the FrontPage Editor

You use the FrontPage Editor to create a text link to another page that is opened in the Editor. The steps are

  1. In the FrontPage Editor, open the page from which you want to originate the link.
  2. Select the text that you want the user to click to activate the link, as in Figure 8.6.
    Figure 8.6: Creating a text link from the FrontPage Editor.
  3. Select Edit | Link, or click the Create or Edit Link button on the toolbar. The Edit Link dialog box appears.
  4. Create a link using one of the methods discussed in "Where You Can Link," later in this chapter. You can create links to an opened page, a page in your current web, a page in the World Wide Web, or to a new page.

Image Links

Image links are commonly used as navigational buttons and navigation bars, but images can be used for links in all sorts of ways. For example, you can provide a thumbnail of a picture, which users can click to download it or display it in a larger view.

Creating Image Links

Creating image links is just as simple as creating text links. The steps are

  1. Insert an image on the page.
  2. Click the image to select it. It becomes surrounded by a selection bounding box, as in Figure 8.7.
    Figure 8.7: Select an image and click the Create or Edit Link button to create an image link.
  3. Use the Edit | Link command, or click the Create or Edit Link button on the FrontPage Editor toolbar. The Edit Link dialog box opens.
  4. Complete the information in the Edit Link dialog box.

Specifying Alternative Text Representations

Sometimes, the people who visit your Web site are not using browsers that can display images. These browsers are becoming increasingly rare, but other browsers provide the option to turn image display off. Many people choose not to download images because of the time involved. This is not a problem when images are placed on a page just to be seen. When they serve a function, however, you must provide an alternative for people who do not want to download all that artwork.

To specify an alternative text representation:

  1. Click the image to select it.
  2. Choose Edit | Properties, or right-click and choose Properties from the pop-up menu. The Image Properties dialog box appears.
  3. In the Alternative Representations | Text field, specify the text that you want to display as an alternative to the graphic. If it is an alternative for a navigation bar, in which a series of images are placed one after another, enter a brief description of the link. For example, to link to a table of contents, enter Contents or TOC.
  4. Choose OK to exit the Image Properties dialog box.

Clickable Image Links

Clickable images, also known as image maps, are graphics that contain hotspots. The hotspots provide links to different pages from within the same image. They are useful and enable you to add creativity to the links on your pages. Figure 8.8 shows a graphic that contains one rectangular and several polygonal hotspots.

Figure 8.8: Clickable images can contain links to several different pages on the Web.

Creating Clickable Images

You can turn any graphic on your page into a clickable image. Simply select the image, create a hotspot or hotspots on it, and assign a link to the hotspot. The steps are

  1. Click the image in which you want to add a hotspot. The Image toolbar activates.
  2. Select the type of hotspot that you want to create from the Image toolbar.
    Circular hotspots. Click the Circle icon and move the cursor inside the image. The cursor becomes a pencil. Position the pencil at the center point of the circular hotspot, and left-click to set the center of the circle. Drag the circle until it surrounds the hotspot area, and release the mouse button.
    Rectangular hotspots. Click the Rectangle icon and position the mouse pointer at the first corner of the rectangle. Left-click and drag to the diagonally opposite corner of the rectangle. Release the left mouse button to complete the hotspot.
    Polygonal hotspots. Click the Polygon button, and position the pointer at the starting point of the polygon. Click to set the first point. Drag the mouse pointer to the end of the first segment, and click again. Continue around the hotspot area in this manner. To end the polygonal hotspot, click the mouse at the originating point of the hotspot. Alternatively, double-click the next-to-the-last segment; when you do this, FrontPage connects the next-to-the-last point to the origin point with a straight line.
  3. After you release the mouse button, the Edit Link dialog box appears.
  4. Complete the information in the Edit Link dialog box.

Highlighting Hotspots

When you edit the shapes of your hotspots so that they do not overlap too much, it is sometimes hard to see their outlines on dark backgrounds. Use the Highlight Hotspots command to find hotspots easier. The steps are

  1. Click the image to activate the Image toolbar.
  2. Click the Highlight Hotspots button, which is the next-to-the-last button on the Image toolbar. The image disappears, and you can see the hotspot areas, as in Figure 8.9.

Figure 8.9: Use the Highlight Hotspots button to view hotspots easily.

Selecting, Moving, Resizing, and Deleting Hotspots

You need to select a hotspot to move, resize, or delete it. To select a hotspot:

  1. Click the image where the hotspot appears.
  2. Select the hotspot by clicking it. It becomes surrounded by a bounding box with sizing handles at each of the corners.

To move a hotspot:

  1. Select the hotspot.
  2. Left-click and drag the hotspot to a new location; use the Escape key to return the hotspot to its original position. Alternatively, use the up, down, left, and right arrow keys to move the hotspot to a new location.

To resize a hotspot:

  1. Select the hotspot.
  2. Click and drag any of the Resizing handles or Resizing points in the hotspot. They are designated by small squares.

To delete a hotspot:

  1. Select the hotspot.
  2. Use the Edit | Clear command, or press the Del key.

Where You Can Link

You now know how to create a link. All the methods described so far open the Edit Link dialog box. This dialog box enables you to link to

Linking to Open Pages

Choose the Open Pages tab, shown in Figure 8.10, to create a link to another page that is opened in the FrontPage Editor. The steps are

Figure 8.10: Use the Open Pages tab to link to other pages that are opened in the FrontPage Editor.

  1. Select the page to which you want to link from the list that appears in the dialog box.
  2. If you are linking to a bookmark on the destination page, select the name of the bookmark from the drop-down list. No bookmarks are listed if the destination page has none.
  3. Click OK to close the Edit Link dialog box.

Linking to Other Pages in Your Current Web

Choose the Current Web tab, shown in Figure 8.11, to create a link to any page, graphic, or file that exists in the web that is currently open in the FrontPage Explorer.

Figure 8.11: Use the Current Web tab to link to other pages in the current web.

The steps are

  1. In the Page field, enter the filename of the page to which you want to link, or click the Browse button to choose from the list of pages in the current web.
  2. If you are linking to a bookmark on the destination page, select the name of the bookmark from the drop-down list. No bookmarks are listed if the destination page has none.
  3. Click OK to close the Edit Link dialog box.

Linking to the World Wide Web

You can create links to pages on the World Wide Web, including pages that exist in other webs on your own Personal Web Server. You also can create links to other Web protocols. Table 8.1 describes the protocols to which you can link.

Table 8.1. Web protocols.

ProtocolURL Example Description
filefile://localhost/directory/filename.ext Specifies a file on your local host.
FTPftp://www.anyserver.com/downloads/program.zip File transfer protocol. Used for a file that is ac-cessible across the Internet.
gophergopher://anygopher.tc.university.edu/2 Gopher protocol.Creates a link to a directory-based protocol.
httphttp://www.anyserver.com/mylink.htm Hypertext transfer protocol. Enables Web clients to retrieve information from Web hosts.
httphttp://www.anyserver.com/mylink.htm#graphics Creates a link to a bookmark on a page.
mailtomailto:myemail@www.myprovider.com Creates a link to an e-mail address.
newsnews:alt.example.nosuchgroup Retrieves files from a Usenet newsgroup.
Telnettelnet:/yourname:password@yourhost:port Used for a remote Telnet login session.
WAISwais://yourhost:port/database Provides links to database information on Wide Area Information Servers.

Sometimes you need to provide a relative URL. In this case, you use the Other protocol. Suppose, for example, that the source URL is http://www.myserver.com/personal/index.htm and that the target URL is http://www.myserver.com/business/index.htm. The relative URL is ../business/index.htm.

NOTE
Your files might end up on a system that is case-sensitive. This is typical of servers that run on UNIX systems. As a general rule, most Web developers use all lowercase letters when they enter URLs to avoid conflicts with case-sensitivity. In addition to the letters of the alphabet and the numbers 0 through 9, you can use the following symbols:
-, ., +, ', _

Use the World Wide Web tab, shown in Figure 8.12, to create a link to a page, a file, or a protocol on the World Wide Web.

Figure 8.12: Use the World Wide Web tab to link to pages on the World Wide Web.

The steps are

  1. From the list of protocols, choose the one that applies to the page or protocol to which you are linking.
  2. In the URL field, enter the absolute URL of the page or protocol to which you want to link.
  3. If you are linking to a bookmark on the destination page, append the bookmark name to the URL, preceded by a pound sign.
  4. Click OK to close the Edit Link dialog box.

Linking to a New Page

Choose the New Page tab, shown in Figure 8.13, to create a link to a new page that will be placed in the currently opened web. The steps are

Figure 8.13: Use the New Page tab to link to pages that do not yet exist in the currently opened web.

  1. Enter a page title for the new page in the Page Title field.
  2. The Edit Link dialog box enters a URL for the page automatically, based on the title that you enter. If you want to edit the title, change it in the Page URL field.
  3. At this point, you can
    Edit the new page immediately. If you choose this option, the new page opens in the FrontPage Editor. You can add content to it right away.
    Add the new page to To Do list. If you choose this option, the new page is saved to your web, and a task for it is added to the To Do List.
  4. Click OK. The Template or Wizard dialog box appears.
  5. Select the template on which you want to base the new page. Choose the Normal template if you want to create page content of your own.
  6. Click OK. If you base the new page on one of the page wizards, follow its instructions to complete the page.

Following Links

The FrontPage Editor has built-in browsing capabilities that enable you to follow the links in your webs and the World Wide Web. Although not a high-powered browser, it enables you to test your links as you design them.

To follow a bookmark, a text link, or an image link forward:

  1. From the FrontPage Editor, place the mouse pointer anywhere within the text or image hotspot that contains the link, or select any part of the link.
  2. Select Tools | Follow Link, or click the Follow Link button on the FrontPage Editor toolbar. If you follow a link to a bookmark, the FrontPage Editor scrolls to the bookmark. If you follow a link to another page, it opens in a new window in the FrontPage Editor.
  3. After you follow a bookmark link, a text link, or an image link forward, use the Back button in the FrontPage Editor to return to the page from which you navigated. The originating page reopens at the location of the link that you followed.

Sometimes the server to which you are following a link is unresponsive. You can stop the process by selecting Tools | Stop from the FrontPage Editor or by clicking the Stop button on the FrontPage Editor toolbar.

Changing, Unlinking, and Deleting Links

It is a fact of life on the Web that sites have a tendency to evolve and change. Ten pages quickly become dozens. They are renamed, relocated, deleted, or divided into other pages.

To change the URL of a text link or an image link:

  1. Select the link that you want to change. For a text link, place the mouse pointer anywhere within the text that contains the link, or select any part of it. For an image link, select the image or the hotspot within the image that contains the link.
  2. Use the Edit | Link command, or click the Create or Edit Link button in the FrontPage Editor toolbar. The Edit Link dialog box appears.
  3. Use the Edit Link dialog box to change the URL.

To unlink a link:

  1. Select the characters that you want to delete from within the text link.
  2. Choose Edit | Unlink. The link is deleted from the text-or the part of the text-that you selected. The text associated with the link remains.

To delete a text link or an image link:

  1. Select the link that you want to delete. For a text link, place the mouse pointer within the text associated with the link. For an image link, select the image or hotspot in the image that contains the link.
  2. Select Edit | Link, or click the Create or Edit Link button on the toolbar. Then click Clear. Alternatively, you can press the Del key.

Adding Extended Attributes to Links

Chapter 11 explains in more detail what extended attributes are used for. FrontPage supports the most common attributes associated with links, but the capability to add additional attributes that are not supported is available in the Edit Link dialog box.

To add extended attributes to a link:

  1. Select the link to which you want to add an extended attribute.
  2. Choose Edit | Properties. The Edit Link dialog box appears.
  3. Click the Extended button. The Extended Attributes dialog box appears.
  4. Click the Add button. The Set Attribute Value dialog box appears.
  5. Enter the name of the attribute in the Attribute Name field.
  6. To associate a value with the attribute name, check the Specify Value checkbox. Enter the value of the attribute in the Value field.
  7. Click OK to close the Set Attribute Value, Extended Attributes, and Edit Link dialog boxes.

Recalculating Links

When multiple authors work on the same web at the same time, you can easily lose track of who has done what. Likewise, when you create webs with wizards or import pages into your web, you sometimes see a red triangle beside the page when you are in the FrontPage Explorer's Outline View. This usually occurs when a page that contains a link is imported to a web before the destination page is imported. Use the Recalculate Links command to update the web display in the FrontPage Explorer. In many cases, this command gets rid of those red triangles.

To update the web display or to create the text index for the Search bot, use the Tools | Recalculate Links command. The FrontPage Explorer refreshes the display of the web in Outline View.

Workshop Wrap-Up

You have learned roughly all there is to know about creating and using links with FrontPage. You are now set to tackle building your Web site from the ground up. Choose a theme, plan the areas that you want to include on your site, and the rest will happen over time. Rome was not built in a day, nor will be your custom pages. Sites constantly evolve and change as new standards are developed for the Internet. The more you become familiar with what is out there and what you can do, the more you can incorporate into your site.

Chapter Summary

In this chapter, you learned how to navigate through your pages and out to other areas of the Internet by using bookmarks and links. You were given suggestions about what to include in your site, and you learned how to link pages together with text, images, and image maps.

Next Steps

In the next chapter, you learn about the basic elements that make up a page-paragraphs, headings, and text styles. You learn when to use them and how to arrange content for the best appearance.

For additional information that relates to the topics discussed in this chapter, check out the following chapters:

Q&A

Q: I am uncertain about when to use relative URLs and how to enter them. Can you help me?
A: A good example of when to use a relative URL is to provide a link to a page that is in another web on your Personal Web Server. It does not fall into the category of pages in your current web, nor does it fall into the category of World Wide Web documents. Suppose, for example, that you are working on the following page in the current web: http://yourservername/MyWeb/funstuff/comics.htm From this page, you want to link to a page in another web on your own server, such as http://yourservername/Comedy/3stooges.htm The common portion of these two webs is http://yourservername. To return to the common root, you have to go back two levels from the comics.htm page. As in the old days of DOS, you go backward one level by entering two periods (..). Therefore, when you create a link from the comics.htm page to the 3stooges.htm page, choose the Other protocol in the World Wide Web tab of the Edit Link dialog box. The relative URL will look like ../../Comedy/3stooges.htm
Q: Why is it best to use relative URLs?
A: Relative URLs are portable. When you develop your Web site on your local computer and subsequently relocate the pages or rename directories, the relationships between the pages are maintained, and the links will not break. In contrast, when you use absolute or base URLs, you need to edit each URL to reflect the new location. This is a tedious and time-consuming task.
Q: Do all browsers support mailto: links?
A: No-if a browser does not support a mailto: link, the user receives an error message.