← Back to Guides

Add footnotes to your content

Footnotes, fine print, disclaimers, citations: these are secondary locations for extra information that doesn't necessarily need to be shown with the same importance of the primary content.

Key points

  • A footnote should be wrapped in <small> tags to mark them as lower importance information. This does not correlate at all to the font size, despite the misleading tag name. Use the <small> tag regardless of whether or not you intend to display the text at a smaller size.

  • A footnote should have a unique id attribute

  • The reference should contain an <a> tag anchored to the footnote's id.


You can afford a $1,000,000 house

1<p id="reference">
2 You can afford a $1,000,000 house<a
3 href="#footnote"
4 title="By house, we mean studio apartment, and by can, we mean can't."
5 >*</a
6 >
9<p id="footnote">
10 <a href="#reference"> * </a>
11 By house, we mean studio apartment, and by can,
12 we mean can't.

Clicking the * on the reference will scroll you to the footnote. It is optional, but recommended to also backlink the footnote to its reference. This is not expected behaviour, but often delightful anyway.

HTML whitespace rules apply, so if you don't want a space before the *, then don't use line breaks or leave spaces around the <a> tag. Both patterns are shown here.

* By house, we mean studio apartment, and by can, we mean can't.

Want news and updates?

Join a handful of people who get my latest content and product updates, directly to your inbox.