6.1. HTML5 logo Valid XHTML5

Your source HTML pages must contain valid[1] XHTML (“plain HTML” cannot be parsed by ebookc) and preferably valid XHTML5, because ebookc anyway generates HTML5 logo XHTML5 markup.

The html root element must have 1 head and 1 body child elements. The head child element must have 1 title child element.

1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta charset="UTF-8" />
    <title>...</title>
  </head>
  <body>
  ...
  </body>
</html>

If you plan to use XMLmind XML Editor as your ebook authoring tool, do not forget to add attribute class="role-ebook-page" to the html root element of your source HTML pages. XMLmind XHTML Editor detects this attribute and this will cause the editor to replace its stock "XHTML" menus and toolbars by extended "XHTML" menus and toolbars.


[1] Note that the validity of the source HTML pages is currently not checked by ebookc. It's only the validity of the ebook specification which is checked against W3C XML Schema ebookc_install_dir/schema/ebook.xsd.