![]() |
#1 |
Read, don't parrot.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Validation error for anchors
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> Any ideas what I am doing wrong? Thanks |
![]() |
![]() |
![]() |
#2 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,321
Karma: 168808725
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Code:
<p class="Left"><a id="Links"></a>FOLLOW LINKS</p> |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,505
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Remember that F7 is only a quick and dirty well-formed check, to make sure tags are properly closed and not illegally nested. It's not a standards validator. It's only meant to catch that which would prevent you from saving an epub or switching to Book View and the like.
|
![]() |
![]() |
![]() |
#4 |
Read, don't parrot.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
David,
That worked, thank you! The mistake I made when first trying to fix it, besides moving the closing </a> tag, was placing my cursor inside the text and trying to add an anchor that way; that resulted in a Sigil error telling me I had to select text, but that resulted in unwanted hyperlinked text. |
![]() |
![]() |
![]() |
Tags |
epub-checker, kindle previewer, pagina, validation |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Validation Error help! | SkyeSkye | Sigil | 4 | 07-10-2013 02:41 PM |
named anchors fail validation in sigil | lkasdorf | Sigil | 2 | 04-20-2012 10:55 PM |
Validation Error | Adjust | ePub | 3 | 07-21-2011 12:06 AM |
Validation error | dezignlady | ePub | 4 | 07-20-2011 02:34 AM |
Validation error | rrosenwald | Calibre | 10 | 10-01-2010 11:12 AM |