Hello-3.1.epub - Navigation File: navigation.xhtml
How to create a navigation file like navigation.xhtml for an EPUB 3.1 book?
At least one navigation file, like navigation.xhtml, is required for an EPUB 3.1 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.1 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> <h3>Table of Contents</h3> <nav epub:type="toc"> <ol> <li> <a href="content.xhtml">Greeting</a> </li> </ol> </nav> </body> </html>
2018-04-15, 102👍, 0💬
How To Loop through an Array without Using "foreach" in PHP? PHP offers the following functions to a...
How To Control Horizontal Alignment in Table Cells? By default, text in all table cells are aligned ...
Can You Add Values to an Array without Keys in PHP? Can You Add Values to an Array with a Key? The a...
How To Sort an Array by Keys in PHP? Sorting an array by keys can be done by using the ksort() funct...
Where to find tutorials on Visual Studio? I want to know How to learn Visual Studio. Here is a large...