The Simplest Book
I've included two simple html examples on this page. The first example is a very simple book that contains a cover, a table of contents and two sample chapters. It's the basic structure for most non-fiction books. The second example is a book that contains no table of contents. This is the basic structure of a novel or novella. Feel free to cut and paste these into any text editor (perhaps Notepad on a Windows machine or Text Edit on a Mac) and use them as a starting place.
With Table of Contents
code:
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /></head>
<title>The Simplest Book </title>
<body><div id="cover"></body>
<img src="cover.jpg" />
</div>
<mbp:pagebreak />
<div name="toc">
<h3 align="center">Table of Contents</h3>
<p>1. <a href="#start">Chapter 1 </a></p>
<p>1. <a href="#chapter2">Chapter 2 </a></p>
</div>
<mbp:pagebreak />
<div id="start">
</div>
<br />
<br />
<h3 align="center">Chapter 1 </h3>
<br />
<br />
The first paragraph of Chapter 1.
<br />
<p>The second paragraph of Chapter 1. </p>
<p>The third paragraph of Chapter 1</p>
<mbp:pagebreak />
<div id="chapter2">
</div>
<br />
<br />
<h3 align="center">Chapter 2 </h3>
<br />
<br />
The first paragraph of Chapter 2.
<br />
<p>The second paragraph of Chapter 2. </p>
<p>The third paragraph of Chapter 2 </p>
<center> - the end - </center>
</html>
--------- end code -------
Without Table of Contents
code:
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /></head>
<title>The Simplest Book </title>
<body></body><div id="cover">
<img src="cover.jpg" />
</div>
<mbp:pagebreak />
<div id="start">
</div>
<br />
<br />
<h3 align="center">Chapter 1 </h3>
<br />
<br />
The first paragraph of Chapter 1.
<br />
<p>The second paragraph of Chapter 1. </p>
<p>The third paragraph of Chapter 1</p>
<mbp:pagebreak />
<br />
<br />
<h3 align="center">Chapter 2 </h3>
<br />
<br />
The first paragraph of Chapter 2.
<br />
<p>The second paragraph of Chapter 2. </p>
<p>The third paragraph of Chapter 2 </p>
<center> - the end - </center>
</html>
--------- end code -------
After publishing your book, the "try a sample" will start at the cover not at the tag <div id="start">. This is not an issue with the tag and the finished book will open at the start tag.
If you want the actual book to open with the cover do the following. On a book with a table of contents, change the tag <div id="start"> and the toc tag <p>1. <a href="#start">Chapter 1 </a></p> to a different name .
for ex (code)
...
<div name="toc">
<h3 align="center">Table of Contents</h3>
* <p>1. <a href="#chapter1">Chapter 1 </a></p>
<p>1. <a href="#chapter2">Chapter 2 </a></p>
</div>
<mbp:pagebreak />
* <div id="chapter1">
</div>
<br />
<br />
<h3 align="center">Chapter 1 </h3>
<br />
<br />
The first paragraph of Chapter 1.
...
--------- end code -------
* marks the changes to the code. Do not include the asterisks in your code.
To start at the cover on a book without a table of contents, simply remove the tag "<div id="start>" and the next "</div>" tag.

