Thread: Links in ebooks
View Single Post
Old 10-31-2011, 04:09 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,560
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by dwig View Post
Also, since ePub is XHTML based the target anchor needs to identify itself with the ID attribute and not the old NAME attribute.
And you don't need to use an <a> for an anchor, you can add the "id" to whatever element, like a <p>, <h2> or <img>:

Code:
<p>This <a href="#target">link</a> wil take you to the next paragraph.</p>

<p id="target">This paragraph is the target of the previous link, and any other link that points to "#target".</p>
Jellby is offline   Reply With Quote