Tools, FAQ, Tutorials:
Hello-3.1.epub - Content File: content.xhtml
How to create a content file like content.xhtml for an EPUB 3.1 book?
✍: FYIcenter.com
At least one content file, like content.xhtml, is required for an EPUB 3.1 book in the book ZIP container. It provides the content of the book.
Here is the requirement on a content file:
1. A content file must be named with .xhtml file extension.
2. A content file must be an XML file and meet the XHTML specifications.
3. A content file must specify some content in the "body" XHTML element.
4. A content 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 content file with any text editor. Here is an example called content.xhtml:
<?xml version="1.0" encoding="utf-8"?> <!-- content.xhtml Copyright (c) FYIcenter.com --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Hello</title> </head> <body> <p>Hello world!</p> </body> </html>
Download Hello-3.1.epub, and unzip it. You see an example of "content.xhtml" in the root directory.
⇒ Hello-3.1.epub Created with WinRAR
⇐ Hello-3.1.epub - Navigation File: navigation.xhtml
2021-08-11, 1679🔥, 0💬
Popular Posts:
Where to get a real Atom XML example? You can follow this tutorial to get a real Atom XML example: 1...
How to add images to my EPUB books Images can be added into book content using the XHTML "img" eleme...
Why I am getting "The Windows SDK version 8.1 was not found" error, when building my C++ application...
What is EPUB 2.0 Metadata "dc:publisher" and "dc:rights" elements? EPUB 2.0 Metadata "dc:publisher" ...
Where to find tutorials on OpenID? Here is a large collection of tutorials to answer many frequently...