home ~ socials ~ projects ~ rss

Footnote Anchor Tag Linking Reference

October 2025

This is how I link up footnotes between the body and the footnote section:

Output

The quick brown1 fox

HTML

In the content body
<p>
  The quick brown<sup
  ><a id="fn-1-body" href="#fn-1">1</sup></a>
  fox</p>

Output

1↑
Some additional text about the top.

HTML

In the footnote section
<p>
  <sup><a id="fn-1" href="#fn-1-body">1↑</a></sup><br />
  Some additional text about the top.
</p>

Styling is season to taste.

-a

end of line
Share link:
https://www.alanwsmith.com/en/34/yi/5i/gf/?footnote-anchor-tag-linking-reference