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.
Example code on jsFiddle
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.
<title>: the most important element of a quality Web page The <title> element in HTML is designed to provide a short piece of text that should stand for the document in cases such as: window title bars. bookmark lists. result lists from search services.
Content (Container) Tags Headings. H1 is the main heading, H2 is secondary, etc. A container for in-line content, such as content inside a paragraph.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With