Tools, FAQ, Tutorials:
Hello-3.0.epub - Navigation File: navigation.xhtml
How to create a navigation file like navigation.xhtml for an EPUB 3.0 book?
✍: FYIcenter.com
At least one navigation file, like navigation.xhtml, is required for
an EPUB 3.0 book in the book ZIP container.
It provides navigation information like a table of contents of the book.
Here is the requirement on a navigation file:
1. A navigation file must be named with .xhtml file extension.
2. A navigation file must be an XML file and meet the XHTML specifications.
3. A navigation file must specify at least 1 "nav" XHTML element like <nav epub:type="toc">, which must have an "ol" sub-element to provide a list of navigation links.
4. A navigation file can be placed in any directory of the EPUB 3.0 book ZIP container. But its exact location must be specified correctly in the package file.
You can create a navigation file with any text editor. Here is an example called navigation.xhtml:
<?xml version="1.0" encoding="utf-8"?>
<!-- navigation.xhtml
Copyright (c) FYIcenter.com
-->
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title>TOC</title>
</head>
<body>
<nav epub:type="toc">
<ol>
<li>
<a href="/content.xhtml">Hello</a>
</li>
</ol>
</nav>
</body>
</html>
Download Hello-3.0.epub, and unzip it. You see an example of "navigation.xhtml" in the root directory.
⇒ Hello-3.0.epub - Content File: content.xhtml
⇐ Hello-3.0.epub - Package File: package.opf
2018-11-29, ∼4750🔥, 0💬
Popular Posts:
How to use "link" command tool to link objet files? If you have object files previously compiled by ...
What is Azure API Management Gateway? Azure API Management Gateway is the Azure Web server that serv...
What is EPUB 2.0 Metadata "dc:creator" and "dc:contributor" elements? EPUB 2.0 Metadata "dc:creator"...
How to add images to my EPUB books Images can be added into book content using the XHTML "img" eleme...
How to register and get an application ID from Azure AD? The first step to use Azure AD is to regist...