Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^3: Can not link to "id" in shortcuts

by shmem (Chancellor)
on Jun 01, 2017 at 08:30 UTC ( #1191807=note: print w/replies, xml ) Need Help??

in reply to Re^2: Can not link to "id" in shortcuts
in thread Can not link to "id" in shortcuts

The name attribute is to be used on button, fieldset, form, iframe, input, keygen, map, meta, object, output, param , select, and textarea. Using the name attribute on anything else will lead to poor HTML.

You forgot a which is the most common tag for which the name attribute is valid. <a></a> is anchor and it is used as <a href="$url">link text</a> and <a name="anchor_name">anchor in text</a> to mark an anchor in a page whose href would then be <a href="$url#anchor_name">target text</a>.

So, For Lady_Aleena ([href://?node_id=535366#Lady_Aleena|For Lady_Aleena]) links to the copy of this node marked as <a name="Lady_Aleena">For Lady Aleena</a> on my scratchpad. This is described on What shortcuts can I use for linking to other information?.

You cannot link to a id or to any tag for which the name attribute is valid and set, only to an anchor (<a name="foo">foo</a>).

Sorry for the impromptu lesson on HTML and PerlMonks markup. :-D

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2019-10-21 02:46 GMT
Find Nodes?
    Voting Booth?