This page demonstrates the footnote shortcode, which creates inline info icons that reveal additional content when clicked.
Basic Usage #
Here’s a sentence with a footnote at the end. This is the footnote content that appears in the dropdown.
You can also place footnotes in the middle Like this one right here!
With Custom Titles #
The footnote shortcode accepts an optional title parameter:
This fact might surprise you The first computer bug was an actual bug - a moth found in a Harvard Mark II computer in 1947.
Multiple Footnotes #
A paragraph can have multiple footnotes This is the first piece of additional information. And here’s another bit of context that might be helpful.
Footnotes with Markdown Content #
The footnote content supports markdown formatting:
Learn more about this topic
Use Cases #
Footnotes are perfect for:
- Definitions - Explain technical termsMore infowithout interrupting the flow.
A technical term is specialized vocabulary used in a particular field or profession.
- Citations - Reference sourcesSourceinline.
Smith, J. (2024). The Art of Writing. Publisher Name.
- Asides - Add commentaryMore infothat some readers might want to skip.
This is my personal opinion and may not reflect the views of others.
- Clarifications - Provide additional contextNotefor edge cases.
This applies only to version 2.0 and later.
Accessibility #
The footnote uses proper ARIA attributes and keyboard navigation:
- Click the icon to open the dropdown
- Click elsewhere to close it
- The
tabindexattributes ensure keyboard accessibility - Screen readers will announce the tooltip title
