View Single Post
Old 03-03-2011, 05:18 AM   #3
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,144
Karma: 9800001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by AndrewH View Post
Nested tags are illegal, so Id tags have to be separate from href tags. You also need to point the footnote link in Chapter 2 to Section0008 (or wherever you have the footnotes located). So, something like this:

CHAPTER 2
<p>This is the text as it would appear in code view. &nbsp;<a id="fnt-2-1"></a><a href="../Text/Section0008.xhtml#fn-2-1">[4]</a>&nbsp;</p>

CHAPTER 8
<p><a id="fn-2-1"></a><a href="#fnt-2-1">1</a>&nbsp;This is what it says in the note. <a href="../Text/Section0002.xhtml#fn-2-1">[return]</a>)</p>
Nested tags are not illegal, unless you mean something different. There's absolutely nothing wrong in adding the "id" attribute to any existing tag, and it's in fact preferred (rather than adding an empty dummy <a> tag just to hold the "id" attribute):

<a id="fnt-2-1" href="../Text/Section0008.xhtml#fn-2-1">[4]</a>
<a id="fn-2-1" href="#fnt-2-1">4</a>
<p id="fn-2-1"><a href="#fnt-2-1">4</a>

are all fine.
Jellby is offline   Reply With Quote