26 Hyperlink Material
When working in Pressbooks, there are different types of links that you may be working with:
- Internal links that are used to facilitate navigation in a book.
- Links to images, files, or other types of media that you have uploaded to Pressbooks. (See Images and Files.)
- External links to a website or other online source outside of the book.
IMPORTANT: The unique ID used for an anchor is case sensitive.
Internal links
Linking material within a chapter or between chapters in a book is slightly different for the Open OKState Pressbooks instance because in addition to chapter and part titles, the title of the book must also be included in the link used. Below are the instructions for those using the Open OKState Pressbooks instance.
When creating a document, there are already some identifiers that Pressbooks will understand. For example, if you want to link to a chapter, you simply need to enter:
[your-book-title-here]/chapter/[your-chapter-title-here]
To link to a part, enter:
[your-book-title-here]//part/[your-part-title-here]
To link to a front matter section, enter:
[your-book-title-here]/front-matter/[your-section-title-here]
To link to a back matter section, enter:
[your-book-title-here]/back-matter/[your-section-title-here]
The easiest way to find this location identifier is to look at the URL of a page in the web version of your book, if the chapter has been published, and copy everything that comes after .ca (including the forward slash).
If the chapter is still in draft, just look at the permalink below the chapter title and copy everything that comes after .ca (including the forward slash).
For more information, see the following chapters in the Pressbooks User Guide: |
Attributions
- The text used for the “Internal links” portion of this chapter was adapted from the Adding Hyperlinks, Internal and External chapter of the Pressbooks Userguide, which is under a CC BY 4.0 Licence.