View Single Post
Old 12-21-2023, 10:51 PM   #3
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by mt.msla View Post
Does anyone know of a "best practice" for adding footnotes? I'd appreciate any constructive instruction.
Just KISS (keep it simple, stupid).

Have 2 simple links:
  • One <a> pointing to the footnote.
  • One <a> pointing back to the footnote number.

Example code:

Code:
<p>This is some text with a note.<a href="#fn1" id="ft1">[1]</a></p>

[...]

<p class="footnote"><a href="#ft1" id="fn1">[1]</a> This is the footnote.</p>
The red parts (fn) point back-and-forth to each other and say:
  • "Hey! Go jump me to footnote 1!"
    • Wherever id "fn1" exists.

The blue parts (ft) point back-and-forth to each other and say:
  • "Hey! Go jump me back to the number for footnote 1!"
    • Wherever id "ft1" exists.

- - -

Side Note: In your searches, did you happen to see the thread back in:

You can visit that for many more details.

(I just did a search in Google and see it's the #1 hit too. )

Last edited by Tex2002ans; 12-21-2023 at 10:54 PM.
Tex2002ans is offline   Reply With Quote