I seem to remember having seen a shortcut to put footnotes in one's posts. However I can't find anything in About the PerlMonks FAQ - so I may well have just imagined it.

In any case is there any recommendation wrt how to create them? Should I explicitly put href links pointing to internal anchors? If so, would href="#anchor" be enough or should that be href="?node_id=whatever#anchor"? - Ok, I may just test to answer the latter question, but who knows? maybe it wouldn't be guaranteed to work all of the time or there may be other quirks I'm not aware of...

Update: right now I've tried using:

Something<A HREF="#1"><SMALL><SUP>1</SUP></SMALL></A> [snip] <P><A NAME="1"><SMALL><SUP>1</SUP></SMALL></A> Whatever...
Seems to be OK...

Replies are listed 'Best First'.
Re: [HOWTO] Footnotes?
by jeffa (Bishop) on Jul 05, 2005 at 14:28 UTC
      OK: slightly simpler than my attempt. Is it {possible,safe} to use
      [href://#br_tags]
      instead?
Re: [HOWTO] Footnotes?
by saskaqueer (Friar) on Jul 07, 2005 at 01:30 UTC

    I'd use something like the following (I'm pretty sure my use of an XHTML <a> tag should be fine :)

    <p> Something <small><sup>[href://#note1|1]</sup></small> should be workin +g here... </p> <hr /> <p> <a name="note1"></a> <small><sup>1</sup></small> I don't know what something is, but ok. </p>

    Something 1 should be working here...


    1 I don't know what something is, but ok.

    update: since everyone seems to be saying the one-way anchor tag is a bad idea, etc etc, I have revised it to simply include the closing a tag.

      No, <a ... /> isn't allowed in the current HTML nesting enforcement. I doubt it will be in the next version either.

      Handling people who write <a/> when they mean </a> is more important than allowing people to save a couple of keystrokes when they make anchors (or whatever they are called), especially since such are hardly ever used here.

      And more featuritis would just mean it takes even longer for improvements to be deployed. But maybe in a later version... (:

      - tye        

        And to build on tye's comment -- there's no reason for an empty anchor, even if it's not a link.

        After all, if you're trying to link to something, there needs to be a something -- that something should go inside the <a> ... </a>. Even in the case of 'jump to top' or 'jump to bottom' links, you're linking to specific sections of the page, not a blank space.