Hi guys,
Does anyone know why the following markup in my input hmtl:
Code:
<a id="chapter3" style="page-break-before:always;"></a>
<h2>CHAPTER 3: The Villain Appears Here</h2>
Gives me the following error in epubcheck:
Code:
element "a" not allowed here; expected element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2
000/svg")
The reason why I use the "a id" is because I have a handcoded TOC in the beginning of the html (my entire document is just one huge html that is later cut up by calibre) and the "a id" provides the anchors for my links in the TOC.
My TOC which is near the beginnign of my html:
Code:
<a id="TOC" style="page-break-before:always;"></a>
<h3>Table Of Contents</h3>
<p><br></p>
<p class="toc1">1 <a href="#chapter1">The Beginning Of The Story</a></p>
<p class="toc1">2 <a href="#chapter2">A Young Hero Given A Quest By Some Old Dude</a></p>
<p class="toc1">4 <a href="#chapter3">The Villain Appears Here</a></p>
Any help would be great

Stodder