Digital publishing
How to Create an Interactive "Choose Your Own Adventure" eBook with Internal Links
In 1976 a small Vermont publisher, Vermont Crossroads Press, issued Edward Packard’s Sugarcane Island, a book in which, in Packard’s own account, “you the reader are the star of the story” and the reader’s choices lead to different plots and endings.1 Three years later, in 1979, Bantam Books launched the Choose Your Own Adventure series in the same format, beginning with The Cave of Time, and registered the series name as a trademark.2 Smithsonian magazine reports that Packard and his co-authors went on to write 184 titles through the 1980s and 1990s, which “sold some 250 million copies.”3 The mechanism was a printed instruction at the foot of the page: a choice followed by a page number, in the form “Turn to Page 6.”4
An eBook can reproduce that mechanism with internal links, and in some respects improve on it, since a tap replaces a search for a page number. The format also introduces problems that print never had: a reading order that a device may enforce, link behavior that differs between platforms, and readers who navigate by screen reader rather than by sight. Building an interactive eBook with internal links is therefore a matter of story architecture and technical discipline in roughly equal parts. Because “Choose Your Own Adventure” is a registered trademark,5 an independent author should describe a book as a branching or choose-your-path story rather than use the series name, and should take legal advice on any trademark question.
A branching story is a graph, and the graph should be drawn before any linking
A conventional novel has one path from beginning to end. A branching story has many, and the author needs a complete map of them before writing markup. Each unit of text (a “passage” or “node”) ends either with an ending or with two or more choices, and each choice points to another passage. The resulting structure is a directed graph.
Authors who draft branching fiction frequently use a dedicated tool for this stage. Twine, a widely used open-source editor for interactive stories, is one such option; its reference guide states that “Twine publishes to HTML files which can be uploaded on any web hosting service or shared privately.”6 The guide does not describe EPUB export,7 so a story drafted in Twine still needs to be converted into eBook files by other means. Twine’s value at this stage lies in its visual map of passages and links, which makes orphaned passages and dead ends visible. A spreadsheet with one row per passage and columns for each choice’s destination can serve the same purpose.
Before converting anything, the map should answer four questions. First, does every passage other than the opening one have at least one link pointing to it? Second, does every non-ending passage offer at least one choice? Third, are there loops, and if so, are they intentional? Fourth, how many endings exist, and are they distinguishable from one another? Smithsonian’s account of the original series cites 40 possible endings and notes that “ten are catastrophically bad,”8 which gives a sense of the scale that the print form supported.
Each passage needs a stable, unique link target
Internal links in EPUB and Kindle books are ordinary HTML hyperlinks. A link points either to a separate file or to an element within a file identified by its id attribute. Two structural approaches are common.
The first approach places each passage in its own XHTML file. Links then point to file names, such as passage-042.xhtml. This keeps each passage self-contained and makes the spine (the book’s declared reading order) explicit about every passage.
The second approach groups many passages in a single file, each beginning with a heading that carries an id, and links to fragment identifiers, such as part-2.xhtml#p42. This produces fewer files, but every fragment must exist exactly as written. The W3C’s EPUBCheck validator reports a missing target as error RSC-012, “Fragment identifier is not defined,” and a missing file as RSC-007, “Referenced resource … could not be found in the EPUB.”9
In either approach, identifiers should be systematic rather than descriptive. Numbering passages (p001, p002) allows the story to be revised without renaming targets when a passage’s content changes. A short example of a passage in the single-file approach follows.
<section id="p042" aria-labelledby="p042-h">
<h2 id="p042-h">The river crossing</h2>
<p>The rope bridge sways under your weight...</p>
<p>If you go back to the village,
<a href="#p017">turn back toward the village</a>.</p>
<p>If you keep going,
<a href="#p058">continue across the bridge</a>.</p>
</section>Spine order decides what a reader sees when turning pages
The spine in the package document lists the files of the book in reading order. A branching story raises a question that linear books never face: what should happen when a reader ignores the links and simply turns the page?
The DAISY Consortium’s Accessible Publishing Knowledge Base explains that reading systems use the spine to decide which document loads next, and advises that “It is critical that you reference all the primary content documents from the spine.”10 EPUB also allows a spine item to be marked non-linear with linear="no". The Knowledge Base cautions, however, that “the EPUB specification does not mandate a specific way of rendering non-linear content”; some reading systems skip non-linear items during page turning and show them only when a reader follows a link, but this behavior is not universal, and reading systems “may or may not present such content where it is placed in the spine.”11
Apple’s handling of non-linear content illustrates why marking story passages as non-linear is usually a poor fit. As of November 2026, Apple’s Books Asset Guide states that non-linear content opens in a separate overlay window, that the non-linear document must be reached through “a link on the page that points to a nonlinear document,” and that non-linear content “is not supported for fixed-layout books.”12 An overlay suits an answer key or an extended image description. It does not suit the main narrative of a story, in which each passage should read as part of the book.
The EPUB specifications treat links to non-linear items as a case that reading systems should honor. A W3C issue on the EPUB specifications quotes the Reading Systems text that a reading system “MAY automatically skip itemref elements marked as non-linear” during ordinary page turning, “(excluding when a user specifically activates a hyperlink to such items),” and proposes making that exception a firm requirement.13 The issue as retrieved did not record its resolution.14 EPUBCheck, for its part, enforces reachability: error OPF-096 reads “Non-linear content must be reachable, but found no hyperlink to” the file in question.15
For most branching eBooks, then, the more predictable choice is to keep all passages linear, in numerical order, and to accept that a reader who turns pages instead of following links will read passages out of narrative sequence. This is exactly how the printed books behaved; nothing prevented a reader from turning from page 5 to page 6 regardless of the instruction at the bottom of page 5. Each passage should therefore open with a heading or label that makes its position clear, so that a reader who arrives by page turning recognizes that the text is a separate branch.
Amazon’s link rules favor one-way links between story passages
Kindle books are subject to Amazon’s own requirements. As of November 2026, KDP’s “Hyperlink Guidelines” state that “Internal links can be used to link separate content within the book.”16 The same page draws a distinction that matters directly to branching fiction. Footnotes must use bi-directional links: “Amazon requires formatting footnotes with bi-directional hyperlinks” so that readers can return to the text.17 Other internal links must not: “internal links that are not footnotes should not be formatted with bi-directional hyperlinks,” and “Non-footnote links should use the format A links to B and B links to C instead.”18 The guidelines give the reason as avoiding unintended pop-ups.19
A choice link in a branching story is a non-footnote link, so it should point forward only. If the destination passage contains a link back to the passage that offered the choice, that link should be a genuine story choice (for instance, “return to the village”) rather than a mechanical return link of the kind used for footnotes.
The guidelines also place a hard limit on format. They state that “Internal hyperlinks are not currently supported on E-reader devices in fixed-layout books.”20 A branching story intended for Kindle e-readers therefore needs to be built as a reflowable book. Apple’s asset guide imposes a related constraint for non-linear content in fixed-layout books.21
Amazon also reserves discretion over links: “Amazon reserves the right to remove links in its sole discretion.”22 Because platform rules change, an author should re-read the current guidelines before each upload.
Link text should state the choice, not the mechanism
In print, the choice sentence and the page instruction were separate: “If you seek shelter, turn to page 6.” In an eBook, the link text itself should carry the meaning of the choice. The Web Content Accessibility Guidelines (WCAG) Success Criterion 2.4.4 requires that “The purpose of each link can be determined from the link text alone or from the link text together with its programmatically determined link context.”23 The W3C’s explanatory material states that the intent is “to help users understand the purpose of each link so they can decide whether they want to follow the link,” and notes that assistive technology can present “a list of links that are on the web page,” a feature for which “Link text that is as meaningful as possible will aid users.”24
KDP’s guidelines point in the same direction for external links, asking for “a self-describing link title” and advising authors to avoid phrases such as “click here,” “see more,” or “additional details.”25 Applied to a branching story, these principles favor link text such as “Follow the footprints into the cave” over “Turn to page 42” or a bare “Option A.” A reader using a screen reader who calls up the list of links in a passage then hears the actual choices.
Three further practices follow from the same reasoning. First, each choice should be a separate link in its own paragraph or list item, so that links do not run together. Second, the number of choices per passage should be stated or easy to count. Third, endings should be explicit: a passage that ends the story should say so and should offer a link back to the opening, or to a list of key decision points, so that the reader is not left on a page with no way forward.
Navigation documents should not reveal the whole map
An EPUB’s navigation document and a Kindle book’s table of contents usually list every chapter. In a branching story, a full list of passages would let readers browse the entire structure, which may defeat the design. The navigation document can instead list only the front matter, the opening passage, and any appendices, such as a note on how to read the book. Every passage still has to be present in the spine and reachable through links, as described above, so the reduced table of contents affects only how readers can jump directly, not whether the files are valid.
A short “How to read this book” note at the front is useful in any case. It can explain that choices appear as links at the end of each passage, that turning pages without following a link will lead to unrelated branches, and how to return to the beginning.
Testing a branching eBook means testing every path
Validation is the first stage. EPUBCheck will flag missing fragment targets (RSC-012), missing files (RSC-007), and unreachable non-linear documents (OPF-096).26 It also reports RSC-011, “Found a reference to a resource that is not a spine item,”27 which catches passages that were written and linked but omitted from the spine.
Validation confirms that links resolve; it does not confirm that the story makes sense. The second stage is a path audit against the story map. For a small book, an author can walk every path by hand. For a larger one, a script that parses the files, extracts every href, and reconstructs the graph can confirm that every passage is reachable from the opening and that every non-ending passage has outgoing links. The audit should be repeated after every revision, since a single renumbered passage can break several paths.
The third stage is device testing. Link behavior, the presence and placement of a “back” control, and the handling of page turns between passages all vary by reading system, and the sources cited here do not document those differences in detail. Testing should cover at least one Kindle e-reader or Kindle app, Apple Books, and one other EPUB reading system, and should include a pass with a screen reader to confirm that link text announces each choice clearly.
The format rewards restraint
The printed books worked because the mechanism was simple and consistent. The eBook version is most reliable under the same conditions: a reflowable layout, linear spine order with clearly labeled passages, one-way links whose text states the choice, a validated file, and a story map that has been checked path by path. Elaborate effects, such as scripted state that remembers earlier choices, are possible in EPUB 3 but sit outside what the retailer guidance and accessibility references consulted here address, and an author considering them should expect uneven support across reading systems.
What the format cannot yet guarantee is uniform behavior when a reader leaves the intended path. Whether a reading system skips, overlays, or displays a passage reached by page turning depends on choices the author does not control, which is why each passage must make sense on arrival, however the reader got there.
Related articles on selfpublishingtool.com
Platform rules, fees and laws change. Facts in this guide are dated to when they were checked; confirm current terms with the platform or authority before relying on them. Nothing here is legal, tax or financial advice.