Reputation: 560
I'm working on a web app that has code listings. Certain lines of code have notes attached to them (think comments, but not inline code comments - more like an author explaining something).
When a user hovers over the footnote type indicator, a tooltip will display the comment.
Now the questions
<mark>
, but I get the feeling that's a
stretch. Somebody suggested the <object>
tag could actually make sense.
Again, not sure. Any insight would be greatly appreciated.
Upvotes: 6
Views: 1728
Reputation: 17753
I was thinking that <aside>
might be useful, but probably a footnote pattern is really the closest match.
Wikipedia uses <sup id="cite_ref-N"><a href="#cite_note-N">N</a></cite>
for the indicator and <li id="cite_note-N">Note</li>
for the note. You could do worse than follow that.
Upvotes: 3