Tools, FAQ, Tutorials:
Hello-2.0.epub - Content File: content.xhtml
How to create a content file like content.xhtml for an EPUB 2.0.1 book?
✍: FYIcenter.com
At least one content file, like content.xhtml, is required for
an EPUB 2.0.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 2.0.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-2.0.epub, and unzip it. You see an example of "content.xhtml" in the root directory.
⇒ Hello-2.0.epub Created with WinRAR
⇐ Hello-2.0.epub - Navigation File: navigation.xml
2021-04-04, ∼2414🔥, 0💬
Popular Posts:
Where can I download the EPUB 2.0 sample book "The Metamorphosis" by Franz Kafka? You can following ...
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 Break a File Path Name into Parts in PHP? If you have a file name, and want to get different ...
Where to get the detailed description of the JSON.stringify() Function in JavaScript? Here is the de...
How to convert JSON Objects to PHP Associative Arrays using the json_decode() function? Actually, JS...