Link to files or text within your site

You can link to files on your site and to different areas of your site so visitors can more easily navigate your content.

Linking to files on your site
  1. Navigate to the page containing the file you want to link to.
  2. Right-click or control-click on the file's link and select Copy Shortcut or Copy Link Location.
  3. Navigate to the page where you want to link to the file from and click the Edit page icon, which looks like a pencil.
  4. Highlight the text to be linked and click the Link icon in the toolbar.
  5. Select the Web address tab and enter the copied link shortcut or location in the box below Link to this URL.
  6. Click "OK."
  7. Continue editing your page or click Save to preserve your changes.

Linking to text on your site

If you want to quickly and automatically create links to significant areas on your page -- often called anchor links -- you might consider adding a table of contents to your page. However, if you want to customize these anchor links or use them to link to areas that are not formatted as text headers, you'll need to add these links individually:

  1. Navigate to the page that you want to be the destination of your anchor link and click the Edit page icon, which looks like a pencil.
  2. Click Edit HTML on the formatting toolbar.
  3. In your page's HTML, you'll need to surround the text that you want to be the destination of your link with a snippet of HTML. For example, if you wanted the destination of your link to be a line of text talking about your dog, Fido, it would look like this:
    <a name="AnchorName">The early years of Fido the magnificent</a>
    In this example, you'll want to replace AnchorName with a name that reflects this link's destination.
  4. Click Update to return to your page, then click Save to preserve your changes to the page.
  5. Navigate to the page where you want to place the link and click "pencil icon Edit page."
  6. Highlight the text you want to turn into a link and click Link.
  7. Select the Web address tab and enter the full URL of your new anchor link in the box below Link to this URL. If you use Google Apps, the full URL of your anchor link will be http://sites.google.com/a/DomainName/YourSite/Page#AnchorName, where DomainName is the name of your organization's domain, YourSite is the name of your site, Page is the page that contains the destination of your link, and AnchorName is the name you used to mark the destination of your anchor link. If you are not a Google Apps user, the full URL of your anchor link will be http://sites.google.com/YourSite/Page#AnchorName, where YourSite is the name of your site, Page is the page that contains the destination of your link, and AnchorName is the name you used mark the destination of your anchor link.
  8. Click OK.
  9. Continue editing your page or click Save to preserve your changes.