Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: [HOWTO] Footnotes?

by saskaqueer (Friar)
on Jul 07, 2005 at 01:30 UTC ( [id://472989]=note: print w/replies, xml ) Need Help??


in reply to [HOWTO] Footnotes?

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.

Replies are listed 'Best First'.
Re^2: [HOWTO] Footnotes? (<a ... />)
by tye (Sage) on Jul 07, 2005 at 02:10 UTC

    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.

        Since you mentioned it, I'll also note that my personal CSS says that underlining <a ...> spans is "important", because I particularly hate the practice of removing the one (formerly) universal visual hint that "this is a link". And a side effect of this is that name= "anchors" are underlined (but not colored) so I like it when "link to here" parts are appropriately selected, such as around the heading.

        Occasionally I see sites that have the "anchor" around an entire paragraph or more, which is mildly annoying but easy for me to put up with because I know the cause and the benefit still *far* outweighs this "problem". And I've gotten used to the "extra" underlines so I doubt I'll bother to learn how to apply my CSS to just non-"name=" <a ...> spans.

        - tye        

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://472989]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-23 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found