Skip to content

Using footnotes in HTML tables #12869

Answered by cderv
lidavidm asked this question in Q&A
Jun 2, 2025 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

It works. Here is an example

---
title: "test"
---


Demo table with a footnote^[Like this one].


```{=html}
<table border="1">
<tr><th><span data-qmd="Product^[New from this week]"></span></th><th>Price</th><th>Stock</th></tr>
<tr><td>Apple</td><td>$1.50</td><td>100</td></tr>
<tr><td>Banana</td><td>$0.75<sup>*</sup></td><td>150</td></tr>
<tr><td>Orange</td><td>$2.00</td><td>75</td></tr>
</table>
```

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@cderv
Comment options

cderv Jun 2, 2025
Maintainer

Answer selected by lidavidm
@lidavidm
Comment options

@cderv
Comment options

cderv Jun 3, 2025
Maintainer

@mcanouil
Comment options

mcanouil Jun 3, 2025
Collaborator

@cderv
Comment options

cderv Jun 3, 2025
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
tables Issues with Tables including the gt integration footnotes Issues with footnotes html Issues with HTML and related web technology (html/css/scss/js)
3 participants