Answers.Body: <p>Yes, you can do that, <code>.epub</code> books are basically made of HTML and CSS, so if you have knowledge of these languages, in theory you can manually build an <code>.epub</code> from scratch (but the norm is to use <a href="https://ebooks.stackexchange.com/q/132/136">specific GUI editors</a>, that help you with this and many other tasks).</p>
  
  <p>Anyway, like I said, it is just HTML, so you just need to set ID's and anchors:</p>
  
  <blockquote>
    <p><strong>Example</strong>  </p>
    
    <p>First, create a bookmark with the id attribute:</p>
    
    <p><code>&lt;h2 id="C4"&gt;Chapter 4&lt;/h2&gt;</code></p>
    
    <p>Then, add a link to the bookmark ("Jump to Chapter 4"), from within the same page:</p>
    
    <p><code>&lt;a href="#C4"&gt;Jump to Chapter 4&lt;/a&gt;</code></p>
    
    <p>Or, add a link to the bookmark ("Jump to Chapter 4"), from another page:</p>
    
    <p><code>&lt;a href="html_demo.html#C4"&gt;Jump to Chapter 4&lt;/a&gt;</code></p>
    
    <p><sub>Source: <a href="https://www.w3schools.com/html/html_links.asp" rel="noreferrer">HTML Links from W3 Schools</a></sub></p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-04T12:14:49.970Z
Answers.LastActivityDate: 2017-07-04T12:23:32.667Z
Answers.LastEditDate: 2017-07-04T12:23:32.667Z
Answers.UserDisplayName: Sekhemty
Answers.Body: <p>Absolutely. Use that capability all you want. </p>
  
  <p>I assume you know how to refer to other html files (and use anchors, etc). </p>
  
  <p>One hard part is that we don't really have any conventions in ebooks to distinguish between external links and internal links. You can invent your own. </p>
  
  <p>I have used internal links for various purposes in my ebook. I wanted to indicate my belief that links should be used sparingly within the context of an ebook. They can be distracting, and reading systems don't offer cues about where the link is going. </p>
  
  <p>More humorously, whenever a book I publish includes a preface, I always include this as the first sentence: </p>
  
  <p>(<strong>Or</strong>: S<a href="http://fakelinkhere" rel="nofollow noreferrer">kip this preface to read the first story</a>.)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-02T16:47:34.427Z
Answers.LastActivityDate: 2017-07-02T16:47:34.427Z
Answers.UserDisplayName: idiotprogrammer
Body: <p>I want to better understand what options the <code>.epub</code> format have to provide more dynamic experiences than just reading a text linearly. </p>
  
  <p>Is there a way to have links inside an ePub that point to another location in that ePub?</p>
  
Tags: <epub><editing>
Title: Does .epub support inline links?
UserDisplayName: Christian
ThreadText: # Does .epub support inline links?
  
  (Asked by: username_0 on 2017-07-02)
  
  I want to better understand what options the `.epub` format have to provide more dynamic experiences than just reading a text linearly.
  
  Is there a way to have links inside an ePub that point to another location in that ePub?
  
  **Tags:** epub, editing
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-07-04. Score: 5
  
  Yes, you can do that, `.epub` books are basically made of HTML and CSS, so if you have knowledge of these languages, in theory you can manually build an `.epub` from scratch (but the norm is to use [specific GUI editors](https://ebooks.stackexchange.com/q/132/136), that help you with this and many other tasks).
  
  Anyway, like I said, it is just HTML, so you just need to set ID's and anchors:
  
  > **Example**
  >
  > First, create a bookmark with the id attribute:
  >
  > `## Chapter 4`
  >
  > Then, add a link to the bookmark ("Jump to Chapter 4"), from within the same page:
  >
  > `Jump to Chapter 4`
  >
  > Or, add a link to the bookmark ("Jump to Chapter 4"), from another page:
  >
  > `Jump to Chapter 4`
  >
  > Source: [HTML Links from W3 Schools](https://www.w3schools.com/html/html_links.asp)
  
  
  ---
  
  ### Answer by username_2 on 2017-07-02. Score: 0
  
  Absolutely. Use that capability all you want.
  
  I assume you know how to refer to other html files (and use anchors, etc).
  
  One hard part is that we don't really have any conventions in ebooks to distinguish between external links and internal links. You can invent your own.
  
  I have used internal links for various purposes in my ebook. I wanted to indicate my belief that links should be used sparingly within the context of an ebook. They can be distracting, and reading systems don't offer cues about where the link is going.
  
  More humorously, whenever a book I publish includes a preface, I always include this as the first sentence:
  
  (**Or**: S[kip this preface to read the first story](http://fakelinkhere).)
  
  
  ---
  
  