If you look at the two templates, the “HTML Page” template has
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>^title^</title>
</head>
<body>
<!-- ** Standard Tinderbox Template [section page] ** -->
<h1>^title^</h1>
^text^
^children(/Templates/HTML page/HTML item)
</body>
</html>
So, that template is what is assigned to the container (a note that has child notes), and its code exports the children with the ^children(/Templates/HTML page/HTML item)
code. This form of the ^children() tag lets one define a template that is used for exporting children.
That leads us to the HTML Item
template that is referenced in the ^children()
tag:
<h2>^title^</h2>
^text
^children(/Templates/HTML page/HTML item)
The differences between the two templates:
-
HTML Page
sets up the basic HTML structure with the standard <html/>
, <head/>
, and <body/>
HTML wrapper tags and HTML block information.
-
HTML Page
uses the top level <h1/>
header tag for that page’s $Title.
-
HTML Item
uses the second level <h2/>
header tag for the rest of the pages in the export.
So:
Container <-- HTML Page
…Child <-- HTML Item
… …Child <-- HTML Item
…Child <-- HTML Item
…Child <-- HTML Item
and so on.
This is just a starting point – HTML templates can be modified to provide all the complexities of SGML/HTML export.