Share via


Inserting HTML Hyperlinks and Bookmarks in Design View

Hyperlinks and bookmarks are important tools for helping users move quickly within and across Web pages to the content they need.

When clicked, a hyperlink will attempt to find an HTML document and open it in your Web browser. It locates this new document using a Uniform Resource Locator (URL) string. For example, the hyperlink <A HREF="mypage.htm"> will look in the current folder for a page named mypage.htm, and display this page in the current frame.

To insert a hyperlink

  1. Open your Web page for editing in Design view.

  2. Select the text or image that the user will click to activate the hyperlink.

  3. On the Format menu, choose Convert to Hyperlink, or select the Convert to Hyperlink button on the Formatting toolbar.

    The Hyperlink dialog box opens.

  4. Type the path to the resource in the URL field, or click the Browse button and navigate to the target page or file.

The TARGET attribute specifies the frame within a frameset in which the document called by the hyperlink is displayed. You can enter the actual name of the target frame, or use special terms like _parent or _top to express the position of the target frame relative to the current one. If this attribute is not set, the page appears in the current frame.

To set the target of a hyperlink

  1. Insert a hyperlink into your HTML document.

  2. Select the text or image for the link, or select the node for the link in the Document Outline window.

  3. On the View menu, choose Property Pages.

    The <A> Property Pages dialog box opens.

  4. In the Frame target field, enter the name of the desired frame, or select a special term. For more information, see <A> Property Pages Dialog Box.

A bookmark creates a location within an HTML document to which a hyperlink can jump (for example, <a name="anchor">).

To insert a bookmark

  1. Open your Web page for editing in Design view.

  2. Place the cursor at the location on the page that you want to bookmark.

  3. On the Format menu, choose Insert Bookmark.

  4. Type a name for this bookmark.

    Now, you can make this bookmark the target of a hyperlink.

You can create a hyperlink that will scroll the current HTML document to a location previously marked by an anchor. The Web browser locates this anchor using an abbreviated URL (for example, <a href="#anchor">).

To insert a hyperlink to a bookmark

  1. Insert a bookmark into the current HTML page.

  2. Select the text or image that the user will click to activate the hyperlink.

  3. On the Format menu, choose Convert to Hyperlink, or select the Convert to Hyperlink button on the Formatting toolbar.

    The Hyperlink dialog box opens.

  4. In the Type field, select (other).

  5. In the URL field, type a pound (#) sign and the bookmark name (for example, #anchor).

See Also

Hyperlink Dialog Box | Bookmark Dialog Box | A Element | a Object | HREF Attribute | href Property