Skip to main content Skip to secondary navigation

Link to External Documents

Main content start

If you have documents such as PDFs and Word documents stored externally, you can link to those documents from your site. 

If you have a large quantity of documents, we recommend hosting them externally on Google Drive for storing and managing them. However, you can also upload and store documents directly on your site using the Media Library. For instructions on adding documents to your media library, see Adding a file. When documents are stored on your site, they will be available for accessibility scanning by Siteimprove

Ensure files are accessible

All content linked to on your site must be accessible to assistive technology such as screen readers. This includes PDF, Word, and PowerPoint files. 

Use human-friendly link text

Clicking on a link to a document, such as a PDF or Word document, is different from clicking on a link to another page on a site. When you click on the document link, it can open or download the document. If you're not expecting it, the appearance of the document can be surprising or inconvenient. If you have limited bandwidth or space on your device, a downloaded document can be troublesome. 

When creating a link, the text should identify the purpose of the link and allow users to decide if they want to follow the link. The text for a link to a document should convey the title, document type, and size; using these in the link text makes it possible to meet WCAG 2.0 2.4.4.

We suggest providing the document name, type, and size as follows:
[name] ([document type], [size]).

Choose where to store the document

Option 1: upload to your site

For files such as PDFs and Word documents that are uploaded and hosted in your media library, you can:

  1. Embed them as you would an image or other media
  2. Link to them as you would link to another page on your site. 

Option 2: store outside your website

When a document is hosted externally, it is linked by its URL and not as a media file. Viewing permission to the file is managed by the hosting service, typically Stanford's Google Drive or Microsoft Teams. To link to an externally hosted file:

  1. Navigate to the file
  2. Copy the URL
  3. Add the link using the steps in Add links to text within a text area.

Related Resources

  • Archival Content from Stanford's Office of Digital Accessibility
  • Find files - How to find files hosted to and linked to from your site