Formatting Pages

Working With Links

Back to Introduction to Nvu Home | Links Within the Page | Links to Other Pages | Images as Links | Removing Links | Email Links

Creating Links Within the Same Page

To create a link within the same page, for example a link that the reader can use to jump from one section to another, you must create an anchor (target location), and then create a link that points to the anchor. Anchors are also called named anchors.

Click to place the insertion point at the beginning of a line where you want to create an anchor, or select some text.

Open Insert > Named Anchor.


You see the Named Anchor Properties dialog box.3. Type a unique name for the anchor in the Anchor Name field (up to 30 characters). If you include spaces, they will be converted to underscores ( _ ). If you selected some text in step 1, this box already contains a name.

Click the OK button.


An anchor icon appears in your document to mark the anchor's location.

To create the link on which readers can click to jump to the anchor:

Select the text or image that you want to link to the anchor.
Click the Link button or open Insert > Link. You see the Link Properties dialog box.

 


  • If you're creating a link to an HTML file on your computer, click Choose File to locate it.
  • If you're creating a link to a named anchor (target), select it from the list of the anchors currently available in the page.

Click the OK button.

Note: To test the link you just created, save your page and click the Browse button .



Creating Links to Other Pages

You can create links from your page to local pages on your own computer or on your workplace's network, or to remote pages on the Internet.

To create a link to another page:

Click to place the insertion point where you want to create a link, or select the text or image that you want to link to the anchor.

Click the Link button. You see the Link Properties dialog box.

Define your link:

  • Link text: If you've already selected an image file or text before clicking the Link button, the selected text or file will be entered here. Otherwise, you must enter the text that you want to use as the link.
  • Link Location: Type the local path and filename or remote URL of the page you want to link to. If you're not sure of the path and filename for a local file, click Choose File to look for it on your hard disk or network. For remote URLs, you can copy the URL from the browser location field. Alternatively, you can select a named anchor or a heading in the current page that you want to link to.
  • URL is relative to page location: If checked, Nvu converts the URL to be relative to the page's location. This is especially useful if you plan to publish your pages to a web server so that others can view them. Using relative URLs allows you to keep all your linked files in the same place relative to each other, regardless of their location on your hard disk or a web server.



Using Images as Links

You can make images, such as JPEG, GIF, or PNG files, behave like links in your pages. When the reader clicks a linked image, the browser window displays the page that the image is linked to.

Select an image on your page.

Click the Link button, or open Insert > Link.

Use the Link Properties dialog box to link the image to a named anchor or heading within the page, or to a separate local or remote page.

Note: To remove the blue border on images used as links, open the Link Properties dialog box, click the Link tab, and uncheck "Show border around linked image".




Removing or Discontinuing Links

To remove a link:

Select the linked text (normally blue and underlined) or image.

Open Format > Remove Links.


To discontinue a link, so that text you type after the link is not included as part of the link:

Click to place the insertion point where you want the link to end.

Open Format > Discontinue Link.




Creating Email Links

Links to email addresses are special links. They are created the same way the links above are created with one exception: you must place "mailto:" in front of the email address in the link field. For example, if I wanted to create a link to my email address on a web page, I would enter mailto:lwushens@dccc.edu in the Link Location field.