Tools, FAQ, Tutorials:
Hello-3.0.epub - Content File: content.xhtml
How to create a content file like content.xhtml for an EPUB 3.0 book?
✍: FYIcenter.com
At least one content file, like content.xhtml, is required for
an EPUB 3.0 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.0 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.0.epub, and unzip it. You see an example of "content.opf" in the root directory.
⇒ Hello-3.0.epub Created with WinRAR/zip
⇐ Hello-3.0.epub - Navigation File: navigation.xhtml
2018-11-29, ∼2625🔥, 0💬
Popular Posts:
How To Truncate an Array in PHP? If you want to remove a chunk of values from an array, you can use ...
How to use the "set-backend-service" Policy Statement for an Azure API service operation? The "set-b...
Where to find tutorials on PHP language? I want to know how to learn PHP. Here is a large collection...
What is EPUB 2.0 Metadata "dc:creator" and "dc:contributor" elements? EPUB 2.0 Metadata "dc:creator"...
How to use the "Ctrl-p Ctrl-q" sequence to detach console from the TTY terminal of container's runni...