View Single Post
Old 09-08-2016, 07:17 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,572
Karma: 169115148
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by eggheadbooks1 View Post
I added three anchors within a chapter so that I could create links to them in the NCX TOC. When I check the file in Sigil (F7), no errors arise. However, when I validate the file in Pagina's ePub-Checker (the IDPF's site is down right now), I get an error for each anchor:

"Error while parsing the file 'element "a" not allowed here; expected the element end-tag or element "address", "blockquote"... [and so on]."

The code for the anchor, and its position, is this:

Code:
<a id="Links"></a><p class="Left">FOLLOW LINKS</p>
I tried moving the closing </a> to the end of the line but that did not work.

Any ideas what I am doing wrong?

Thanks
I'd suggest moving the <a></a> tags within the </p></p> tags.

Code:
<p class="Left"><a id="Links"></a>FOLLOW LINKS</p>
FlightCrew and EpubCheck running as Sigil plugins are both happy with that structure.
DNSB is offline   Reply With Quote