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
Open your Web page for editing in Design view.
Select the text or image that the user will click to activate the hyperlink.
On the Format menu, choose Convert to Hyperlink, or select the Convert to Hyperlink button on the Formatting toolbar.
The Hyperlink dialog box opens.
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
Insert a hyperlink into your HTML document.
Select the text or image for the link, or select the node for the link in the Document Outline window.
On the View menu, choose Property Pages.
The <A> Property Pages dialog box opens.
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
Open your Web page for editing in Design view.
Place the cursor at the location on the page that you want to bookmark.
On the Format menu, choose Insert Bookmark.
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
Insert a bookmark into the current HTML page.
Select the text or image that the user will click to activate the hyperlink.
On the Format menu, choose Convert to Hyperlink, or select the Convert to Hyperlink button on the Formatting toolbar.
The Hyperlink dialog box opens.
In the Type field, select (other).
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