Thread: epubcheck Error
View Single Post
Old 05-19-2024, 11:54 PM   #7
mdpeterson42
Enthusiast
mdpeterson42 began at the beginning.
 
Posts: 25
Karma: 10
Join Date: May 2024
Device: Kindle
OK, so my new issue is the following error:

Error while parsing file: 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/2000/svg")

This is in reference to a line that was a location for a link elsewhere in the book. In the HTML code, I used:

<a name="TCOOS"> <p class="subtitle">THE COLOUR OUT OF SPACE</P>

In calibre, it changed that to:

<a id="TCOOS"> <p class="subtitle" id="calibre_toc_16">THE COLOUR OUT OF SPACE</p>
<p class="subsubtitle" id="calibre_toc_17">

I assume I can't just take out "a" but I am not sure what to replace it with.

Thank you!
mdpeterson42 is offline   Reply With Quote